Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.crypto.ed25519
  • Platforms: .NET, .NET Standard 2.0, Island

 

constructor Island

 

constructor

 

__Global()

 

init()

GenerateKey

 

// .NET, Island
class method GenerateKey(rand: Reader): tuple of (PublicKey, PrivateKey, error)
// .NET Standard 2.0
class method GenerateKey(rand: Reader): ValueTuple<PublicKey, PrivateKey, error>

 

// .NET, Island
static (PublicKey, PrivateKey, error) GenerateKey(Reader rand)
// .NET Standard 2.0
static ValueTuple<PublicKey, PrivateKey, error> GenerateKey(Reader rand)

 

// .NET, Island
static func GenerateKey(_ rand: Reader) -> (PublicKey, PrivateKey, error)
// .NET Standard 2.0
static func GenerateKey(_ rand: Reader) -> ValueTuple<PublicKey, PrivateKey, error>

 

// .NET, Island
func GenerateKey(rand Reader) (PublicKey, PrivateKey, error)
// .NET Standard 2.0
func GenerateKey(rand Reader) ValueTuple<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

Parameters:

  • seed:

PrivateKeySize

 

const PrivateKeySize: Int64 = 64;

 

const Int64 PrivateKeySize = 64

 

static let PrivateKeySize: Int64 = 64

 

const PrivateKeySize Int64 =  = 64

PublicKeySize

 

const PublicKeySize: Int64 = 32;

 

const Int64 PublicKeySize = 32

 

static let PublicKeySize: Int64 = 32

 

const PublicKeySize Int64 =  = 32

SeedSize

 

const SeedSize: Int64 = 32;

 

const Int64 SeedSize = 32

 

static let SeedSize: Int64 = 32

 

const SeedSize 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>

Parameters:

  • privateKey:
  • message:

SignatureSize

 

const SignatureSize: Int64 = 64;

 

const Int64 SignatureSize = 64

 

static let SignatureSize: Int64 = 64

 

const SignatureSize Int64 =  = 64

Verify

 

class method Verify(publicKey: PublicKey; message: Slice<Byte>; sig: Slice<Byte>): bool

 

static bool Verify(PublicKey publicKey, Slice<Byte> message, Slice<Byte> sig)

 

static func Verify(_ publicKey: PublicKey, _ message: Slice<Byte>, _ sig: Slice<Byte>) -> bool

 

func Verify(publicKey PublicKey, message Slice<Byte>, sig Slice<Byte>) bool

Parameters:

  • publicKey:
  • message:
  • sig:

 

PrivateKeySize

 

const PrivateKeySize: Int64 = 64;

 

const Int64 PrivateKeySize = 64

 

static let PrivateKeySize: Int64 = 64

 

const PrivateKeySize Int64 =  = 64

PublicKeySize

 

const PublicKeySize: Int64 = 32;

 

const Int64 PublicKeySize = 32

 

static let PublicKeySize: Int64 = 32

 

const PublicKeySize Int64 =  = 32

SeedSize

 

const SeedSize: Int64 = 32;

 

const Int64 SeedSize = 32

 

static let SeedSize: Int64 = 32

 

const SeedSize Int64 =  = 32

SignatureSize

 

const SignatureSize: Int64 = 64;

 

const Int64 SignatureSize = 64

 

static let SignatureSize: Int64 = 64

 

const SignatureSize Int64 =  = 64

 

GenerateKey

 

// .NET, Island
class method GenerateKey(rand: Reader): tuple of (PublicKey, PrivateKey, error)
// .NET Standard 2.0
class method GenerateKey(rand: Reader): ValueTuple<PublicKey, PrivateKey, error>

 

// .NET, Island
static (PublicKey, PrivateKey, error) GenerateKey(Reader rand)
// .NET Standard 2.0
static ValueTuple<PublicKey, PrivateKey, error> GenerateKey(Reader rand)

 

// .NET, Island
static func GenerateKey(_ rand: Reader) -> (PublicKey, PrivateKey, error)
// .NET Standard 2.0
static func GenerateKey(_ rand: Reader) -> ValueTuple<PublicKey, PrivateKey, error>

 

// .NET, Island
func GenerateKey(rand Reader) (PublicKey, PrivateKey, error)
// .NET Standard 2.0
func GenerateKey(rand Reader) ValueTuple<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

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>

Parameters:

  • privateKey:
  • message:

Verify

 

class method Verify(publicKey: PublicKey; message: Slice<Byte>; sig: Slice<Byte>): bool

 

static bool Verify(PublicKey publicKey, Slice<Byte> message, Slice<Byte> sig)

 

static func Verify(_ publicKey: PublicKey, _ message: Slice<Byte>, _ sig: Slice<Byte>) -> bool

 

func Verify(publicKey PublicKey, message Slice<Byte>, sig Slice<Byte>) bool

Parameters:

  • publicKey:
  • message:
  • sig: