C# Class Secp256k1.BigIntExtensions

Mostrar archivo Open project: TangibleCryptography/Secp256k1

Public Methods

Method Description
BitLength ( this i ) : int
GetBitcoinAddress ( this publicKey, bool compressed = true ) : string
HexToBigInteger ( this s ) : System.Numerics.BigInteger
HexToBytes ( this s ) : byte[]
ModInverse ( this n, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
Order ( this b, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
ShanksSqrt ( this a, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
TestBit ( this i, int n ) : bool
ToBigInteger ( this bytes, bool bigEndian ) : System.Numerics.BigInteger
ToBigIntegerUnsigned ( this bytes, bool bigEndian ) : System.Numerics.BigInteger
ToByteArrayUnsigned ( this i, bool bigEndian ) : byte[]
ToHex ( this b ) : string

Private Methods

Method Description
FindE ( System.Numerics.BigInteger p ) : System.Numerics.BigInteger
FindS ( System.Numerics.BigInteger p ) : System.Numerics.BigInteger
TwoExp ( System.Numerics.BigInteger e ) : System.Numerics.BigInteger

Method Details

BitLength() public static method

public static BitLength ( this i ) : int
i this
return int

GetBitcoinAddress() public static method

public static GetBitcoinAddress ( this publicKey, bool compressed = true ) : string
publicKey this
compressed bool
return string

HexToBigInteger() public static method

public static HexToBigInteger ( this s ) : System.Numerics.BigInteger
s this
return System.Numerics.BigInteger

HexToBytes() public static method

public static HexToBytes ( this s ) : byte[]
s this
return byte[]

ModInverse() public static method

public static ModInverse ( this n, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
n this
p System.Numerics.BigInteger
return System.Numerics.BigInteger

Order() public static method

public static Order ( this b, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
b this
p System.Numerics.BigInteger
return System.Numerics.BigInteger

ShanksSqrt() public static method

public static ShanksSqrt ( this a, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
a this
p System.Numerics.BigInteger
return System.Numerics.BigInteger

TestBit() public static method

public static TestBit ( this i, int n ) : bool
i this
n int
return bool

ToBigInteger() public static method

public static ToBigInteger ( this bytes, bool bigEndian ) : System.Numerics.BigInteger
bytes this
bigEndian bool
return System.Numerics.BigInteger

ToBigIntegerUnsigned() public static method

public static ToBigIntegerUnsigned ( this bytes, bool bigEndian ) : System.Numerics.BigInteger
bytes this
bigEndian bool
return System.Numerics.BigInteger

ToByteArrayUnsigned() public static method

public static ToByteArrayUnsigned ( this i, bool bigEndian ) : byte[]
i this
bigEndian bool
return byte[]

ToHex() public static method

public static ToHex ( this b ) : string
b this
return string