Global
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.crypto.ed25519
- Platforms: .NET, .NET Standard 2.0, Island
GenerateKey
class method GenerateKey(rand: Reader): tuple of (PublicKey, PrivateKey, error)
static (PublicKey, PrivateKey, error) GenerateKey(Reader rand)
static func GenerateKey(_ rand: Reader) -> (PublicKey, PrivateKey, error)
func GenerateKey(rand Reader) tuple of (PublicKey, PrivateKey, error)
Shared Function GenerateKey(rand As Reader) As Tuple (Of PublicKey, PrivateKey, error)
Parameters:
- rand:
NewKeyFromSeed
class method NewKeyFromSeed(seed: Slice<Byte>): PrivateKey
static PrivateKey NewKeyFromSeed(Slice<Byte> seed)
static func NewKeyFromSeed(_ seed: Slice<Byte>) -> PrivateKey
func NewKeyFromSeed(seed Slice<Byte>) PrivateKey
Shared Function NewKeyFromSeed(seed As Slice<Byte>) As PrivateKey
Parameters:
- seed:
PrivateKeySize
const PrivateKeySize: Int64 = 64;
const Int64 PrivateKeySize = 64
static let PrivateKeySize: Int64 = 64
const PrivateKeySize Int64 = 64
Dim PrivateKeySize As Int64 = 64
PublicKeySize
const PublicKeySize: Int64 = 32;
const Int64 PublicKeySize = 32
static let PublicKeySize: Int64 = 32
const PublicKeySize Int64 = 32
Dim PublicKeySize As Int64 = 32
SeedSize
const SeedSize: Int64 = 32;
const Int64 SeedSize = 32
static let SeedSize: Int64 = 32
const SeedSize Int64 = 32
Dim SeedSize As Int64 = 32
Sign
class method Sign(privateKey: PrivateKey; message: Slice<Byte>): Slice<Byte>
static Slice<Byte> Sign(PrivateKey privateKey, Slice<Byte> message)
static func Sign(_ privateKey: PrivateKey, _ message: Slice<Byte>) -> Slice<Byte>
func Sign(privateKey PrivateKey, message Slice<Byte>) Slice<Byte>
Shared Function Sign(privateKey As PrivateKey, message As Slice<Byte>) As Slice<Byte>
Parameters:
- privateKey:
- message:
SignatureSize
const SignatureSize: Int64 = 64;
const Int64 SignatureSize = 64
static let SignatureSize: Int64 = 64
const SignatureSize Int64 = 64
Dim SignatureSize As Int64 = 64
Verify
Parameters:
- publicKey:
- message:
- sig:
PrivateKeySize
const PrivateKeySize: Int64 = 64;
const Int64 PrivateKeySize = 64
static let PrivateKeySize: Int64 = 64
const PrivateKeySize Int64 = 64
Dim PrivateKeySize As Int64 = 64
PublicKeySize
const PublicKeySize: Int64 = 32;
const Int64 PublicKeySize = 32
static let PublicKeySize: Int64 = 32
const PublicKeySize Int64 = 32
Dim PublicKeySize As Int64 = 32
SeedSize
const SeedSize: Int64 = 32;
const Int64 SeedSize = 32
static let SeedSize: Int64 = 32
const SeedSize Int64 = 32
Dim SeedSize As Int64 = 32
SignatureSize
GenerateKey
class method GenerateKey(rand: Reader): tuple of (PublicKey, PrivateKey, error)
static (PublicKey, PrivateKey, error) GenerateKey(Reader rand)
static func GenerateKey(_ rand: Reader) -> (PublicKey, PrivateKey, error)
func GenerateKey(rand Reader) tuple of (PublicKey, PrivateKey, error)
Shared Function GenerateKey(rand As Reader) As Tuple (Of PublicKey, PrivateKey, error)
Parameters:
- rand:
NewKeyFromSeed
class method NewKeyFromSeed(seed: Slice<Byte>): PrivateKey
static PrivateKey NewKeyFromSeed(Slice<Byte> seed)
static func NewKeyFromSeed(_ seed: Slice<Byte>) -> PrivateKey
func NewKeyFromSeed(seed Slice<Byte>) PrivateKey
Shared Function NewKeyFromSeed(seed As Slice<Byte>) As PrivateKey
Parameters:
- seed:
Sign
class method Sign(privateKey: PrivateKey; message: Slice<Byte>): Slice<Byte>
static Slice<Byte> Sign(PrivateKey privateKey, Slice<Byte> message)
static func Sign(_ privateKey: PrivateKey, _ message: Slice<Byte>) -> Slice<Byte>
func Sign(privateKey PrivateKey, message Slice<Byte>) Slice<Byte>
Shared Function Sign(privateKey As PrivateKey, message As Slice<Byte>) As Slice<Byte>
Parameters:
- privateKey:
- message:
Verify
Parameters:
- publicKey:
- message:
- sig: