vechain_flutter_sdk library

A native Flutter/Dart SDK for the VeChainThor blockchain.

Pure Dart, no platform channels.

Classes

VeChainAddress
A VeChainThor account address: 20 bytes, shown as 0x plus 40 hex digits with an EIP-55 checksum.
VeChainHash
The two hash functions VeChainThor uses: BLAKE2b-256 and Keccak-256.
VeChainHex
Converts between raw bytes and 0x-prefixed hexadecimal strings, the format VeChainThor uses for hashes, addresses, signatures, and raw transactions.
VeChainKeyPair
A secp256k1 key pair for a VeChainThor account: a private key, its public key in both formats, and the account address.
VeChainNetwork
A VeChainThor network: its identity (genesis block ID and chain tag) and the node URL used to reach it.
VeChainSignature
A secp256k1 signature as VeChainThor uses it: 65 bytes made of r (32), s (32) and a recovery byte (0 or 1).

Exceptions / Errors

VeChainAddressException
Exception thrown when an address is malformed or fails its EIP-55 checksum.
VeChainCodecException
Exception thrown when data cannot be decoded from its text representation, such as a malformed hex string.
VeChainCryptoException
Exception thrown when a cryptographic input is invalid, such as a private key outside the secp256k1 range or a public key that is not a point on the curve.
VeChainNetworkException
Exception thrown when a VeChain network definition is invalid.