write skeleton of functions
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export type PrivKey = void
|
||||
export type PubKey = void
|
||||
export type Signature = string
|
||||
|
||||
export function gen_keypair() : [PrivKey, PubKey] {
|
||||
throw "todo"
|
||||
}
|
||||
export function sign(privkey: PrivKey, message: Uint8Array) : Signature {
|
||||
throw "todo"
|
||||
}
|
||||
export function verify(pubkey: PubKey, message: Uint8Array, signature: Signature) : boolean {
|
||||
throw "todo"
|
||||
}
|
||||
Reference in New Issue
Block a user