C# Класс Secp256k1.BigIntExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
FindE ( System.Numerics.BigInteger p ) : System.Numerics.BigInteger
FindS ( System.Numerics.BigInteger p ) : System.Numerics.BigInteger
TwoExp ( System.Numerics.BigInteger e ) : System.Numerics.BigInteger

Описание методов

BitLength() публичный статический Метод

public static BitLength ( this i ) : int
i this
Результат int

GetBitcoinAddress() публичный статический Метод

public static GetBitcoinAddress ( this publicKey, bool compressed = true ) : string
publicKey this
compressed bool
Результат string

HexToBigInteger() публичный статический Метод

public static HexToBigInteger ( this s ) : System.Numerics.BigInteger
s this
Результат System.Numerics.BigInteger

HexToBytes() публичный статический Метод

public static HexToBytes ( this s ) : byte[]
s this
Результат byte[]

ModInverse() публичный статический Метод

public static ModInverse ( this n, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
n this
p System.Numerics.BigInteger
Результат System.Numerics.BigInteger

Order() публичный статический Метод

public static Order ( this b, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
b this
p System.Numerics.BigInteger
Результат System.Numerics.BigInteger

ShanksSqrt() публичный статический Метод

public static ShanksSqrt ( this a, System.Numerics.BigInteger p ) : System.Numerics.BigInteger
a this
p System.Numerics.BigInteger
Результат System.Numerics.BigInteger

TestBit() публичный статический Метод

public static TestBit ( this i, int n ) : bool
i this
n int
Результат bool

ToBigInteger() публичный статический Метод

public static ToBigInteger ( this bytes, bool bigEndian ) : System.Numerics.BigInteger
bytes this
bigEndian bool
Результат System.Numerics.BigInteger

ToBigIntegerUnsigned() публичный статический Метод

public static ToBigIntegerUnsigned ( this bytes, bool bigEndian ) : System.Numerics.BigInteger
bytes this
bigEndian bool
Результат System.Numerics.BigInteger

ToByteArrayUnsigned() публичный статический Метод

public static ToByteArrayUnsigned ( this i, bool bigEndian ) : byte[]
i this
bigEndian bool
Результат byte[]

ToHex() публичный статический Метод

public static ToHex ( this b ) : string
b this
Результат string