Skip to content

Commit

Permalink
chore(sidecar): populate test_data folder for ERC-2335 keystore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 18, 2024
1 parent 11e5c1f commit e804caf
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test-voting-keystore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"crypto": {
"kdf": {
"function": "pbkdf2",
"params": {
"dklen": 32,
"c": 262144,
"prf": "hmac-sha256",
"salt": "d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"
},
"message": ""
},
"checksum": {
"function": "sha256",
"params": {},
"message": "8a9f5d9912ed7e75ea794bc5a89bca5f193721d30868ade6f73043c6ea6febf1"
},
"cipher": {
"function": "aes-128-ctr",
"params": {
"iv": "264daa3f303d7259501c93d997d84fe6"
},
"message": "cee03fde2af33149775b7223e7845e4fb2c8ae1792e5f99fe9ecf474cc8c16ad"
}
},
"description": "This is a test keystore that uses PBKDF2 to secure the secret.",
"pubkey": "9612d7a727c9d0a22e185a1c768478dfe919cada9266988cb32359c11f2b7b27f4ae4040902382ae2910c15e2b420d07",
"path": "m/12381/60/0/0",
"uuid": "64625def-3331-4eea-ab6f-782f3ed16a83",
"version": 4
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"crypto": {
"kdf": {
"function": "scrypt",
"params": {
"dklen": 32,
"n": 262144,
"p": 1,
"r": 8,
"salt": "d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"
},
"message": ""
},
"checksum": {
"function": "sha256",
"params": {},
"message": "d2217fe5f3e9a1e34581ef8a78f7c9928e436d36dacc5e846690a5581e8ea484"
},
"cipher": {
"function": "aes-128-ctr",
"params": {
"iv": "264daa3f303d7259501c93d997d84fe6"
},
"message": "06ae90d55fe0a6e9c5c3bc5b170827b2e5cce3929ed3f116c2811e6366dfe20f"
}
},
"description": "This is a test keystore that uses scrypt to secure the secret.",
"pubkey": "9612d7a727c9d0a22e185a1c768478dfe919cada9266988cb32359c11f2b7b27f4ae4040902382ae2910c15e2b420d07",
"path": "m/12381/60/3141592653/589793238",
"uuid": "1d85ae20-35c5-4611-98e8-aa14a633906f",
"version": 4
}

7 changes: 7 additions & 0 deletions bolt-sidecar/test_data/keys/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### About

This directory is intended to be used as the folder to place ERC-2335 keystores
files.

It is assumed that each keystore file has a `.json` extension and is is placed
in a directory named after the public key it corresponds to.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
𝔱𝔢𝔰𝔱𝔭𝔞𝔰𝔰𝔴𝔬𝔯𝔡🔑
7 changes: 7 additions & 0 deletions bolt-sidecar/test_data/secrets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### About

This directory is intended to be used as the folder to place ERC-2335 keystores
secrets.

It is assumed that each secrets file is named after the public key it
corresponds to. and contains the password in plain text.

0 comments on commit e804caf

Please sign in to comment.