PrivateKey

Overview

Location

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

Implements

 

constructor

 

constructor

 

PrivateKey()

 

init()

constructor (PrivateKey)

 

constructor(value: PrivateKey)

 

PrivateKey(PrivateKey value)

 

init(_ value: PrivateKey)

Parameters:

  • value:

constructor (PublicKey, Reference<Int>)

 

constructor(aPublicKey: PublicKey; aD: Reference<Int>)

 

PrivateKey(PublicKey aPublicKey, Reference<Int> aD)

 

init(_ aPublicKey: PublicKey, _ aD: Reference<Int>)

Parameters:

  • aPublicKey:
  • aD:

Add

 

method Add(x1: Reference<Int>; y1: Reference<Int>; x2: Reference<Int>; y2: Reference<Int>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) Add(Reference<Int> x1, Reference<Int> y1, Reference<Int> x2, Reference<Int> y2)

 

func Add(_ x1: Reference<Int>, _ y1: Reference<Int>, _ x2: Reference<Int>, _ y2: Reference<Int>) -> (x:Reference<Int>, y:Reference<Int>)

 

func Add(x1 Reference<Int>, y1 Reference<Int>, x2 Reference<Int>, y2 Reference<Int>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • x1:
  • y1:
  • x2:
  • y2:

Curve

 

property Curve: Curve read write;

 

Curve Curve { get; set; }

 

var Curve: Curve { get{} set{} }

 

Curve Curve

D

 

var D: Reference<Int>;

 

var D: Reference<Int>

Double

 

method Double(x1: Reference<Int>; y1: Reference<Int>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) Double(Reference<Int> x1, Reference<Int> y1)

 

func Double(_ x1: Reference<Int>, _ y1: Reference<Int>) -> (x:Reference<Int>, y:Reference<Int>)

 

func Double(x1 Reference<Int>, y1 Reference<Int>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • x1:
  • y1:

IsOnCurve

 

method IsOnCurve(x: Reference<Int>; y: Reference<Int>): bool

 

bool IsOnCurve(Reference<Int> x, Reference<Int> y)

 

func IsOnCurve(_ x: Reference<Int>, _ y: Reference<Int>) -> bool

 

func IsOnCurve(x Reference<Int>, y Reference<Int>) bool

Parameters:

  • x:
  • y:

Params

 

method Params: Reference<CurveParams>

 

Reference<CurveParams> Params()

 

func Params() -> Reference<CurveParams>

 

func Params() Reference<CurveParams>

Public

 

method Public: PublicKey

 

PublicKey Public()

 

func Public() -> PublicKey

 

func Public() PublicKey

PublicKey

 

var PublicKey: PublicKey;

 

PublicKey PublicKey

 

var PublicKey: PublicKey

 

PublicKey PublicKey

ScalarBaseMult

 

method ScalarBaseMult(k: Slice<Byte>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) ScalarBaseMult(Slice<Byte> k)

 

func ScalarBaseMult(_ k: Slice<Byte>) -> (x:Reference<Int>, y:Reference<Int>)

 

func ScalarBaseMult(k Slice<Byte>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • k:

ScalarMult

 

method ScalarMult(x1: Reference<Int>; y1: Reference<Int>; k: Slice<Byte>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) ScalarMult(Reference<Int> x1, Reference<Int> y1, Slice<Byte> k)

 

func ScalarMult(_ x1: Reference<Int>, _ y1: Reference<Int>, _ k: Slice<Byte>) -> (x:Reference<Int>, y:Reference<Int>)

 

func ScalarMult(x1 Reference<Int>, y1 Reference<Int>, k Slice<Byte>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • x1:
  • y1:
  • k:

Sign

 

// .NET, Island
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)

 

// .NET, Island
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) ValueTuple<Slice<Byte>, error>

Parameters:

  • rand:
  • digest:
  • opts:

X

 

property X: Reference<Int> read write;

 

Reference<Int> X { get; set; }

 

var X: Reference<Int> { get{} set{} }

Y

 

property Y: Reference<Int> read write;

 

Reference<Int> Y { get; set; }

 

var Y: Reference<Int> { get{} set{} }

 

D

 

var D: Reference<Int>;

 

var D: Reference<Int>

PublicKey

 

var PublicKey: PublicKey;

 

PublicKey PublicKey

 

var PublicKey: PublicKey

 

PublicKey PublicKey

 

Curve

 

property Curve: Curve read write;

 

Curve Curve { get; set; }

 

var Curve: Curve { get{} set{} }

 

Curve Curve

X

 

property X: Reference<Int> read write;

 

Reference<Int> X { get; set; }

 

var X: Reference<Int> { get{} set{} }

Y

 

property Y: Reference<Int> read write;

 

Reference<Int> Y { get; set; }

 

var Y: Reference<Int> { get{} set{} }

 

constructor

 

constructor

 

PrivateKey()

 

init()

constructor (PrivateKey)

 

constructor(value: PrivateKey)

 

PrivateKey(PrivateKey value)

 

init(_ value: PrivateKey)

Parameters:

  • value:

constructor (PublicKey, Reference<Int>)

 

constructor(aPublicKey: PublicKey; aD: Reference<Int>)

 

PrivateKey(PublicKey aPublicKey, Reference<Int> aD)

 

init(_ aPublicKey: PublicKey, _ aD: Reference<Int>)

Parameters:

  • aPublicKey:
  • aD:

Add

 

method Add(x1: Reference<Int>; y1: Reference<Int>; x2: Reference<Int>; y2: Reference<Int>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) Add(Reference<Int> x1, Reference<Int> y1, Reference<Int> x2, Reference<Int> y2)

 

func Add(_ x1: Reference<Int>, _ y1: Reference<Int>, _ x2: Reference<Int>, _ y2: Reference<Int>) -> (x:Reference<Int>, y:Reference<Int>)

 

func Add(x1 Reference<Int>, y1 Reference<Int>, x2 Reference<Int>, y2 Reference<Int>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • x1:
  • y1:
  • x2:
  • y2:

Double

 

method Double(x1: Reference<Int>; y1: Reference<Int>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) Double(Reference<Int> x1, Reference<Int> y1)

 

func Double(_ x1: Reference<Int>, _ y1: Reference<Int>) -> (x:Reference<Int>, y:Reference<Int>)

 

func Double(x1 Reference<Int>, y1 Reference<Int>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • x1:
  • y1:

IsOnCurve

 

method IsOnCurve(x: Reference<Int>; y: Reference<Int>): bool

 

bool IsOnCurve(Reference<Int> x, Reference<Int> y)

 

func IsOnCurve(_ x: Reference<Int>, _ y: Reference<Int>) -> bool

 

func IsOnCurve(x Reference<Int>, y Reference<Int>) bool

Parameters:

  • x:
  • y:

Params

 

method Params: Reference<CurveParams>

 

Reference<CurveParams> Params()

 

func Params() -> Reference<CurveParams>

 

func Params() Reference<CurveParams>

Public

 

method Public: PublicKey

 

PublicKey Public()

 

func Public() -> PublicKey

 

func Public() PublicKey

ScalarBaseMult

 

method ScalarBaseMult(k: Slice<Byte>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) ScalarBaseMult(Slice<Byte> k)

 

func ScalarBaseMult(_ k: Slice<Byte>) -> (x:Reference<Int>, y:Reference<Int>)

 

func ScalarBaseMult(k Slice<Byte>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • k:

ScalarMult

 

method ScalarMult(x1: Reference<Int>; y1: Reference<Int>; k: Slice<Byte>): tuple of (x: Reference<Int>, y: Reference<Int>)

 

(Reference<Int> x, Reference<Int> y) ScalarMult(Reference<Int> x1, Reference<Int> y1, Slice<Byte> k)

 

func ScalarMult(_ x1: Reference<Int>, _ y1: Reference<Int>, _ k: Slice<Byte>) -> (x:Reference<Int>, y:Reference<Int>)

 

func ScalarMult(x1 Reference<Int>, y1 Reference<Int>, k Slice<Byte>) (x Reference<Int>, y Reference<Int>)

Parameters:

  • x1:
  • y1:
  • k:

Sign

 

// .NET, Island
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method Sign(rand: Reader; digest: Slice<Byte>; opts: SignerOpts): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> Sign(Reader rand, Slice<Byte> digest, SignerOpts opts)

 

// .NET, Island
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(_ rand: Reader, _ digest: Slice<Byte>, _ opts: SignerOpts) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) (Slice<Byte>, error)
// .NET Standard 2.0
func Sign(rand Reader, digest Slice<Byte>, opts SignerOpts) ValueTuple<Slice<Byte>, error>

Parameters:

  • rand:
  • digest:
  • opts: