feat: use crypto-hash instead of hasha
This commit is contained in:
committed by
Michael Vines
parent
bd7e802e46
commit
402c160ae9
@ -224,42 +224,9 @@ test('equals (II)', () => {
|
||||
expect(key1.equals(key2)).toBe(true);
|
||||
});
|
||||
|
||||
test('createWithSeed', () => {
|
||||
const defaultPublicKey = new PublicKey([
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
]);
|
||||
const derivedKey = PublicKey.createWithSeed(
|
||||
test('createWithSeed', async () => {
|
||||
const defaultPublicKey = new PublicKey('11111111111111111111111111111111');
|
||||
const derivedKey = await PublicKey.createWithSeed(
|
||||
defaultPublicKey,
|
||||
'limber chicken: 4/45',
|
||||
defaultPublicKey,
|
||||
|
Reference in New Issue
Block a user