feat: add transaction signature verification
This commit is contained in:
committed by
Michael Vines
parent
fd00571b0a
commit
d9a271742f
10
web3.js/flow-typed/tweetnacl.js
vendored
10
web3.js/flow-typed/tweetnacl.js
vendored
@ -8,13 +8,17 @@ declare module "tweetnacl" {
|
||||
(): KeyPair,
|
||||
fromSecretKey(secretKey: Buffer): KeyPair,
|
||||
fromSeed(seed: Uint8Array): KeyPair,
|
||||
|
||||
};
|
||||
|
||||
declare type DetachedFunc = {
|
||||
(text: Buffer, secretKey: Buffer): Buffer,
|
||||
verify(message: Buffer, signature: Buffer|null, publicKey: Buffer): bool,
|
||||
};
|
||||
|
||||
declare module.exports: {
|
||||
sign: {
|
||||
keyPair: KeypairFunc;
|
||||
detached(text: Buffer, secretKey: Buffer): Buffer;
|
||||
detached: DetachedFunc;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user