Align nacl test keys (#97)
This commit is contained in:
@@ -9,12 +9,7 @@ describe('naclSign', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
secretKey = naclKeypairFromSeed(
|
||||
new Uint8Array([
|
||||
0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56,
|
||||
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12,
|
||||
0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56,
|
||||
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12
|
||||
])
|
||||
'12345678901234567890123456789012'
|
||||
).secretKey;
|
||||
});
|
||||
|
||||
@@ -25,9 +20,7 @@ describe('naclSign', () => {
|
||||
secretKey
|
||||
)
|
||||
).toEqual(
|
||||
new Uint8Array([
|
||||
209, 234, 164, 44, 182, 218, 103, 16, 205, 238, 97, 222, 123, 112, 2, 240, 24, 192, 26, 134, 11, 170, 167, 153, 141, 108, 187, 171, 241, 125, 226, 179, 244, 232, 131, 61, 44, 68, 87, 41, 141, 131, 88, 36, 175, 173, 57, 29, 12, 112, 26, 200, 247, 89, 14, 64, 224, 188, 211, 198, 233, 119, 158, 6
|
||||
])
|
||||
new Uint8Array([28, 58, 206, 239, 249, 70, 59, 191, 166, 40, 219, 218, 235, 170, 25, 79, 10, 94, 9, 197, 34, 126, 1, 150, 246, 68, 28, 238, 36, 26, 172, 163, 168, 90, 202, 211, 126, 246, 57, 212, 43, 24, 88, 197, 240, 113, 118, 76, 37, 81, 91, 110, 236, 50, 144, 134, 100, 223, 220, 238, 34, 185, 211, 7])
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,23 +10,9 @@ describe('naclSign', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
publicKey = naclKeypairFromSeed(
|
||||
new Uint8Array([
|
||||
0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56,
|
||||
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12,
|
||||
0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56,
|
||||
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12
|
||||
])
|
||||
'12345678901234567890123456789012'
|
||||
).publicKey;
|
||||
signature = new Uint8Array([
|
||||
209, 234, 164, 44, 182, 218, 103, 16,
|
||||
205, 238, 97, 222, 123, 112, 2, 240,
|
||||
24, 192, 26, 134, 11, 170, 167, 153,
|
||||
141, 108, 187, 171, 241, 125, 226, 179,
|
||||
244, 232, 131, 61, 44, 68, 87, 41,
|
||||
141, 131, 88, 36, 175, 173, 57, 29,
|
||||
12, 112, 26, 200, 247, 89, 14, 64,
|
||||
224, 188, 211, 198, 233, 119, 158, 6
|
||||
]);
|
||||
signature = new Uint8Array([28, 58, 206, 239, 249, 70, 59, 191, 166, 40, 219, 218, 235, 170, 25, 79, 10, 94, 9, 197, 34, 126, 1, 150, 246, 68, 28, 238, 36, 26, 172, 163, 168, 90, 202, 211, 126, 246, 57, 212, 43, 24, 88, 197, 240, 113, 118, 76, 37, 81, 91, 110, 236, 50, 144, 134, 100, 223, 220, 238, 34, 185, 211, 7]);
|
||||
});
|
||||
|
||||
it('validates a correctly signed message', () => {
|
||||
|
||||
Reference in New Issue
Block a user