Properties
createKeypairFromSecretKey
create
Keypair
From
Secret
Key
: ((secretKey
: Uint8Array) => Keypair)
createKeypairFromSeed
create
Keypair
From
Seed
: ((seed
: Uint8Array) => Keypair)
findPda
find
Pda
: ((programId
: PublicKey<string>, seeds
: Uint8Array[]) => Pda<string, number>)
Type declaration
-
- (programId: PublicKey<string>, seeds: Uint8Array[]): Pda<string, number>
-
Parameters
-
programId: PublicKey<string>
-
seeds: Uint8Array[]
Returns Pda<string, number>
generateKeypair
isOnCurve
is
On
Curve
: ((publicKey
: PublicKey<string>) => boolean)
Type declaration
-
- (publicKey: PublicKey<string>): boolean
-
Returns boolean
sign
sign
: ((message
: Uint8Array, keypair
: Keypair) => Uint8Array)
Type declaration
-
- (message: Uint8Array, keypair: Keypair): Uint8Array
-
Returns Uint8Array
verify
verify
: ((message
: Uint8Array, signature
: Uint8Array, publicKey
: PublicKey<string>) => boolean)
Type declaration
-
- (message: Uint8Array, signature: Uint8Array, publicKey: PublicKey<string>): boolean
-
Parameters
-
message: Uint8Array
-
signature: Uint8Array
-
publicKey: PublicKey<string>
Returns boolean
Defines the interface for the EdDSA cryptography algorithm. It allows us to create, find and use public keys and keypairs.