btc_sdk library

Utility library to work with btcs wallets and transaction types.

More dartdocs go here...

Classes

Address
Represents an Address defined for a specific network in order to create lock UTXO on bitcoin transactions.
BigIntPoint
BigIntTuple
Buffer
This class is used to perform manipulation of array of bytes represented as Uint8List.
EllipticCurve
An elliptic curve is a set of points described by the equation y² = x³ + ax + b mod p, so this is where the a and b variables come from. Different curves will have different values for these coefficients, and a=0 and b=7 are the ones specific to EllipticCurve.secp256k1.
ExtendedPrivateKey
An Extended PrivateKey represents a PrivateKey which can be derived to create new child pairs of PrivateKey and PublicKey that can be used to perform payments.
ExtendedPublicKey
Hash
HDWallet
Modulus
P2PKHScriptRuntime
PBKDF2
PrivateKey
Contains the value of a valid private key for bitcoin wallets. A Private Key for bitcoin, is a 32 bytes random number sitting which exists in the EllipticCurve associated.
PublicKey
Represent an instance of a PublicKey derived from the SecretKey by using the EllipticCurve instance associated.
ScriptData
A ScriptData is an instance of ScriptElement which contains data represented as Uint8List.
ScriptElement
The ScriptElement is the basic entity in the Script Language and can be either:
ScriptExpression
ScriptNumber
ScriptOpAdd
ScriptOpCheckSig
ScriptOpDepth
ScriptOpDrop
ScriptOpDup
ScriptOpEqual
ScriptOpEqualVerify
ScriptOperation
A ScriptOperation is a ScriptElement within the Script language and encode a logical operation that can be performed.
ScriptOpHash160
ScriptOpHash256
ScriptOpVerify
ScriptReader
ScriptRuntime
The ScriptRuntime contains useful information used by the Script Language when evaluating the expressions.
SigHash
SignedHash
A SignedHash contains the hashed and it's signature.
Transaction
TransactionInput
TransactionOutput
TransactionReader
Reader class designed to parse bitcoin Transactions Transaction from an array of bytes (Uint8List).
Uint
Represent a generic unsigned integer value which could be either Uint8, Uint16, Uint32 or Uint64.
Uint8ListReader
Reader class to parse a list of bytes (Uint8List) into specific structures.
VarInt
A VarInt or "Variable Integer" is an integer format used widely in Bitcoin to indicate the lengths of fields within transaction, block and peer-to-peer network data.
WifPrivateKey
Wallet Import Format PrivateKey

Extensions

BigIntExtensions on BigInt
Enable a BigInt type to be converted in a list of bytes as Uint8List.
IntExtensions on int
Utility extension for int to convert into Uint8List with different Endian options.
IntToUint on int
ListIntExtensions on List<int>
PublicKeyToAddress on PublicKey
StringExtensions on String
Provides conversion functions to get a String representation of a number value with a specific encoding to be transformed into a Uint8List. This extension will help to convert from Hex, Base58, UTF8 to the equivalent Uint8List.
Uint8ListExtensions on Uint8List