메소드 | 설명 | |
---|---|---|
BitcoinValueToFriendlyString ( long value ) : string |
Returns the given value in nanocoins as a 0.12 type string.
|
|
BitcoinValueToFriendlyString ( ulong value ) : string |
Returns the given value in nanocoins as a 0.12 type string.
|
|
BytesToHexString ( byte bytes ) : string |
Returns the given byte array hex encoded.
|
|
DoubleDigest ( byte input ) : byte[] |
See DoubleDigest(byte[], int, int).
|
|
DoubleDigest ( byte input, int offset, int length ) : byte[] |
Calculates the SHA-256 hash of the given byte range, and then hashes the resulting hash again. This is standard procedure in BitCoin. The resulting hash is in big endian form.
|
|
DoubleDigestTwoBuffers ( byte input1, int offset1, int length1, byte input2, int offset2, int length2 ) : byte[] |
Calculates SHA256(SHA256(byte range 1 + byte range 2)).
|
|
ReadUint16Be ( byte bytes, int offset ) : ushort | ||
ReadUint32 ( byte bytes, int offset ) : uint | ||
ReadUint32Be ( byte bytes, int offset ) : uint | ||
ReverseBytes ( byte bytes ) : byte[] |
Returns a copy of the given byte array in reverse order.
|
|
Sha256Hash160 ( byte input ) : byte[] |
Calculates RIPEMD160(SHA256(input)). This is used in Address calculations.
|
|
ToNanoCoins ( string coins ) : ulong |
Convert an amount expressed in the way humans are used to into nanocoins. This takes string in a format understood by System.Double.Parse(string), for example "0", "1", "0.10", "1.23E3", "1234.5E-5". |
|
ToNanoCoins ( uint coins, uint cents ) : ulong |
Convert an amount expressed in the way humans are used to into nanocoins.
|
|
Uint32ToByteArrayBe ( uint val, byte @out, int offset ) : void | ||
Uint32ToByteArrayLe ( uint val, byte @out, int offset ) : void | ||
Uint32ToByteStreamLe ( uint val, Stream stream ) : void | ||
Uint64ToByteStreamLe ( ulong val, Stream stream ) : void |
메소드 | 설명 | |
---|---|---|
DecodeCompactBits ( long compact ) : |
||
DecodeMpi ( byte mpi ) : |
MPI encoded numbers are produced by the OpenSSL BN_bn2mpi function. They consist of a 4 byte big endian length field, followed by the stated number of bytes representing the number in big endian format.
|
public static BitcoinValueToFriendlyString ( long value ) : string | ||
value | long | |
리턴 | string |
public static BitcoinValueToFriendlyString ( ulong value ) : string | ||
value | ulong | |
리턴 | string |
public static BytesToHexString ( byte bytes ) : string | ||
bytes | byte | |
리턴 | string |
public static DoubleDigest ( byte input, int offset, int length ) : byte[] | ||
input | byte | |
offset | int | |
length | int | |
리턴 | byte[] |
public static DoubleDigestTwoBuffers ( byte input1, int offset1, int length1, byte input2, int offset2, int length2 ) : byte[] | ||
input1 | byte | |
offset1 | int | |
length1 | int | |
input2 | byte | |
offset2 | int | |
length2 | int | |
리턴 | byte[] |
public static ReadUint16Be ( byte bytes, int offset ) : ushort | ||
bytes | byte | |
offset | int | |
리턴 | ushort |
public static ReadUint32 ( byte bytes, int offset ) : uint | ||
bytes | byte | |
offset | int | |
리턴 | uint |
public static ReadUint32Be ( byte bytes, int offset ) : uint | ||
bytes | byte | |
offset | int | |
리턴 | uint |
public static ToNanoCoins ( uint coins, uint cents ) : ulong | ||
coins | uint | |
cents | uint | |
리턴 | ulong |
public static Uint32ToByteArrayBe ( uint val, byte @out, int offset ) : void | ||
val | uint | |
@out | byte | |
offset | int | |
리턴 | void |
public static Uint32ToByteArrayLe ( uint val, byte @out, int offset ) : void | ||
val | uint | |
@out | byte | |
offset | int | |
리턴 | void |
public static Uint32ToByteStreamLe ( uint val, Stream stream ) : void | ||
val | uint | |
stream | Stream | |
리턴 | void |
public static Uint64ToByteStreamLe ( ulong val, Stream stream ) : void | ||
val | ulong | |
stream | Stream | |
리턴 | void |