fix wallet json

This commit is contained in:
jonesmarvin8 2026-02-25 19:00:01 -05:00
parent 85dd5fae86
commit 3ed6ce3f1c
2 changed files with 47 additions and 109 deletions

View File

@ -8,85 +8,23 @@
"initial_accounts": [
{
"Public": {
"account_id": "6iArKUXxhUJqS7kCaPNhwMWt3ro71PDyBj7jwAyE2VQV",
"account_id": "DZJA7kNNqoYsBiDFSdjpQwzQbAg9SXHcVe7ruwW11Xqh",
"pub_sign_key": [
16,
162,
106,
154,
236,
125,
52,
184,
35,
100,
238,
174,
69,
197,
41,
77,
187,
10,
118,
75,
0,
11,
148,
238,
185,
181,
133,
17,
220,
72,
124,
77
106, 164, 195, 101, 105, 155, 137, 217, 99, 239, 133, 165, 152, 104, 185, 97, 43, 96, 1, 249, 7, 80, 180, 151, 6, 98, 166, 39, 118, 51, 46, 129
]
}
},
{
"Public": {
"account_id": "7wHg9sbJwc6h3NP1S9bekfAzB8CHifEcxKswCKUt3YQo",
"account_id": "gyaTLqDhi1b3W7xbSiZw1ToZMqJdHHgigTpK2hiZWS8",
"pub_sign_key": [
113,
121,
64,
177,
204,
85,
229,
214,
178,
6,
109,
191,
29,
154,
63,
38,
242,
18,
244,
219,
8,
208,
35,
136,
23,
127,
207,
237,
216,
169,
190,
27
194, 118, 30, 134, 242, 177, 171, 11, 64, 74, 249, 10, 99, 97, 126, 66, 154, 44, 229, 34, 200, 226, 178, 57, 185, 252, 130, 170, 23, 90, 68, 56
]
}
},
{
"Private": {
"account_id": "2ECgkFTaXzwjJBXR7ZKmXYQtpHbvTTHK9Auma4NL9AUo",
"account_id": "HWkW5qd4XK3me6sCAb4bfPj462k33DjtKtEcYpuzNwB",
"account": {
"program_owner": [
0,
@ -103,19 +41,19 @@
"nonce": 0
},
"key_chain": {
"secret_spending_key": [112, 17, 152, 192, 217, 201, 142, 92, 111, 68, 85, 222, 107, 73, 78, 196, 118, 226, 37, 17, 185, 177, 149, 182, 9, 85, 187, 152, 163, 144, 68, 121],
"secret_spending_key": [14, 202, 241, 109, 32, 181, 152, 140, 76, 153, 108, 57, 77, 192, 181, 97, 108, 144, 122, 45, 219, 5, 203, 193, 82, 123, 83, 34, 250, 214, 137, 63],
"private_key_holder": {
"nullifier_secret_key": [52, 33, 235, 245, 42, 132, 163, 182, 114, 56, 144, 187, 147, 23, 184, 227, 128, 12, 180, 142, 217, 110, 188, 177, 155, 141, 23, 127, 216, 185, 33, 126],
"viewing_secret_key": [44, 81, 165, 166, 34, 188, 192, 240, 40, 9, 83, 189, 215, 184, 246, 154, 247, 227, 155, 16, 121, 238, 4, 245, 63, 135, 192, 213, 222, 247, 120, 86]
"nullifier_secret_key": [174, 56, 101, 30, 248, 249, 100, 0, 122, 199, 209, 246, 58, 163, 223, 146, 59, 143, 78, 95, 41, 186, 106, 187, 53, 63, 75, 244, 233, 185, 110, 199],
"viewing_secret_key": [251, 85, 223, 73, 142, 127, 134, 132, 185, 210, 100, 103, 198, 108, 229, 80, 176, 211, 249, 114, 110, 7, 225, 17, 7, 69, 204, 32, 47, 242, 103, 247]
},
"nullifer_public_key": [13, 25, 40, 5, 198, 248, 210, 248, 237, 121, 124, 145, 186, 142, 253, 216, 236, 69, 193, 32, 166, 167, 49, 133, 172, 111, 159, 46, 84, 17, 157, 23],
"viewing_public_key": [3, 43, 116, 165, 161, 27, 150, 158, 175, 198, 215, 27, 121, 126, 158, 224, 249, 92, 168, 163, 173, 115, 120, 122, 89, 173, 133, 94, 39, 238, 62, 52, 193]
"nullifer_public_key": [139, 19, 158, 11, 155, 231, 85, 206, 132, 228, 220, 114, 145, 89, 113, 156, 238, 142, 242, 74, 182, 91, 43, 100, 6, 190, 31, 15, 31, 88, 96, 204],
"viewing_public_key": [3, 136, 153, 50, 191, 184, 135, 36, 29, 107, 57, 9, 218, 135, 249, 213, 118, 215, 118, 173, 30, 137, 116, 77, 17, 86, 62, 154, 31, 173, 19, 167, 211]
}
}
},
{
"Private": {
"account_id": "E8HwiTyQe4H9HK7icTvn95HQMnzx49mP9A2ddtMLpNaN",
"account_id": "HUpbRQ1vEcZv5y6TDYv9tpt1VA64ji2v4RDLJfK2rpZn",
"account": {
"program_owner": [
0,
@ -132,13 +70,13 @@
"nonce": 0
},
"key_chain": {
"secret_spending_key": [48, 175, 124, 10, 230, 240, 166, 14, 249, 254, 157, 226, 208, 124, 122, 177, 203, 139, 192, 180, 43, 120, 55, 151, 50, 21, 113, 22, 254, 83, 148, 56],
"secret_spending_key": [32, 162, 244, 221, 2, 133, 168, 250, 240, 52, 92, 187, 157, 116, 249, 203, 143, 194, 214, 112, 115, 142, 153, 78, 241, 173, 103, 242, 192, 196, 29, 133],
"private_key_holder": {
"nullifier_secret_key": [99, 82, 190, 140, 234, 10, 61, 163, 15, 211, 179, 54, 70, 166, 87, 5, 182, 68, 117, 244, 217, 23, 99, 9, 4, 177, 230, 125, 109, 91, 160, 30],
"viewing_secret_key": [205, 32, 76, 251, 255, 236, 96, 119, 61, 111, 65, 100, 75, 218, 12, 22, 17, 170, 55, 226, 21, 154, 161, 34, 208, 74, 27, 1, 119, 13, 88, 128]
"nullifier_secret_key": [188, 235, 121, 54, 131, 206, 7, 215, 94, 231, 102, 22, 12, 27, 253, 161, 248, 206, 41, 160, 206, 149, 5, 217, 127, 235, 154, 230, 198, 232, 102, 31],
"viewing_secret_key": [89, 116, 140, 122, 211, 179, 190, 229, 18, 94, 56, 235, 48, 99, 104, 228, 111, 72, 231, 18, 247, 97, 110, 60, 238, 138, 0, 25, 92, 44, 30, 145]
},
"nullifer_public_key": [32, 67, 72, 164, 106, 53, 66, 239, 141, 15, 52, 230, 136, 177, 2, 236, 207, 243, 134, 135, 210, 143, 87, 232, 215, 128, 194, 120, 113, 224, 4, 165],
"viewing_public_key": [2, 79, 110, 46, 203, 29, 206, 205, 18, 86, 27, 189, 104, 103, 113, 181, 110, 53, 78, 172, 11, 171, 190, 18, 126, 214, 81, 77, 192, 154, 58, 195, 238]
"nullifer_public_key": [173, 134, 33, 223, 54, 226, 10, 71, 215, 254, 143, 172, 24, 244, 243, 208, 65, 112, 118, 70, 217, 240, 69, 100, 129, 3, 121, 25, 213, 132, 42, 45],
"viewing_public_key": [2, 43, 42, 253, 112, 83, 195, 164, 26, 141, 92, 28, 224, 120, 155, 119, 225, 1, 45, 42, 245, 172, 134, 136, 52, 183, 170, 96, 115, 212, 114, 120, 37]
}
}
}

View File

@ -170,40 +170,40 @@ mod tests {
let initial_acc1 = serde_json::from_str(
r#"{
"Public": {
"account_id": "6iArKUXxhUJqS7kCaPNhwMWt3ro71PDyBj7jwAyE2VQV",
"account_id": "DZJA7kNNqoYsBiDFSdjpQwzQbAg9SXHcVe7ruwW11Xqh",
"pub_sign_key": [
16,
162,
106,
154,
236,
125,
52,
184,
35,
100,
238,
174,
69,
197,
41,
77,
187,
10,
118,
75,
0,
11,
148,
238,
185,
181,
164,
195,
101,
105,
155,
137,
217,
99,
239,
133,
17,
220,
72,
124,
77
165,
152,
104,
185,
97,
43,
96,
1,
249,
7,
80,
180,
151,
6,
98,
166,
39,
118,
51,
46,
129
]
}
}"#,