TWBitcoinScript class abstract
Bitcoin script manipulating functions
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
TWBitcoinScriptBuildPayToPublicKey(
Pointer< Void> pubkey) → Pointer<Void> - Builds a standard 'pay to public key' script.
-
TWBitcoinScriptBuildPayToPublicKeyHash(
Pointer< Void> hash) → Pointer<Void> - Builds a standard 'pay to public key hash' script.
-
TWBitcoinScriptBuildPayToScriptHash(
Pointer< Void> scriptHash) → Pointer<Void> - Builds a standard 'pay to script hash' script.
-
TWBitcoinScriptBuildPayToWitnessPubkeyHash(
Pointer< Void> hash) → Pointer<Void> - Builds a pay-to-witness-public-key-hash (P2WPKH) script..
-
TWBitcoinScriptBuildPayToWitnessScriptHash(
Pointer< Void> scriptHash) → Pointer<Void> - Builds a pay-to-witness-script-hash (P2WSH) script.
-
TWBitcoinScriptCreate(
) → Pointer< Void> - Creates an empty script.
-
TWBitcoinScriptCreateCopy(
Pointer< Void> script) → Pointer<Void> - Creates a script by copying an existing script.
-
TWBitcoinScriptCreateWithBytes(
Pointer< Uint8> bytes, int size) → Pointer<Void> - Creates a script from a raw bytes and size.
-
TWBitcoinScriptCreateWithData(
Pointer< Void> data) → Pointer<Void> - Creates a script from a raw data representation.
-
TWBitcoinScriptData(
Pointer< Void> script) → Pointer<Void> - Get data of a script
-
TWBitcoinScriptDelete(
Pointer< Void> script) → void - Delete/Deallocate a given script.
-
TWBitcoinScriptEncode(
Pointer< Void> script) → Pointer<Void> - Encodes the script.
-
TWBitcoinScriptEqual(
Pointer< Void> lhs, Pointer<Void> rhs) → bool - Determines whether 2 scripts have the same content
-
TWBitcoinScriptHashTypeForCoin(
int coinType) → int - Return the default HashType for the given coin, such as TWBitcoinSigHashTypeAll.
-
TWBitcoinScriptIsPayToScriptHash(
Pointer< Void> script) → bool - Determines whether this is a pay-to-script-hash (P2SH) script.
-
TWBitcoinScriptIsPayToWitnessPublicKeyHash(
Pointer< Void> script) → bool - Determines whether this is a pay-to-witness-public-key-hash (P2WPKH) script.
-
TWBitcoinScriptIsPayToWitnessScriptHash(
Pointer< Void> script) → bool - Determines whether this is a pay-to-witness-script-hash (P2WSH) script.
-
TWBitcoinScriptIsWitnessProgram(
Pointer< Void> script) → bool - Determines whether this is a witness program script.
-
TWBitcoinScriptLockScriptForAddress(
Pointer< Utf8> address, int coin) → Pointer<Void> - Builds a appropriate lock script for the given address..
-
TWBitcoinScriptMatchPayToPubkey(
Pointer< Void> script) → Pointer<Void> - Matches the script to a pay-to-public-key (P2PK) script.
-
TWBitcoinScriptMatchPayToPubkeyHash(
Pointer< Void> script) → Pointer<Void> - Matches the script to a pay-to-public-key-hash (P2PKH).
-
TWBitcoinScriptMatchPayToScriptHash(
Pointer< Void> script) → Pointer<Void> - Matches the script to a pay-to-script-hash (P2SH).
-
TWBitcoinScriptMatchPayToWitnessPublicKeyHash(
Pointer< Void> script) → Pointer<Void> - Matches the script to a pay-to-witness-public-key-hash (P2WPKH).
-
TWBitcoinScriptMatchPayToWitnessScriptHash(
Pointer< Void> script) → Pointer<Void> - Matches the script to a pay-to-witness-script-hash (P2WSH).
-
TWBitcoinScriptScriptHash(
Pointer< Void> script) → Pointer<Void> - Return script hash of a script
-
TWBitcoinScriptSize(
Pointer< Void> script) → int - Get size of a script