Crate chik_sdk_utils

Source

Enums§

AddressError
Errors you can get while trying to decode an address.
CoinSelectionError
An error that occurs when selecting coins.
PuzzleHashError
Errors you can get while trying to decode a puzzle hash.

Functions§

decode_address
Decodes an address into a puzzle hash and HRP prefix.
decode_puzzle_hash
Decodes a puzzle hash from hex, with or without a prefix.
encode_address
Encodes an address with a given HRP prefix.
encode_puzzle_hash
Encodes a puzzle hash into hex, with or without a prefix.
knapsack_coin_algorithm
Runs the knapsack algorithm on a set of coins, attempting to find an optimal set.
select_coins
Uses the knapsack algorithm to select coins.
strip_prefix
Removes the 0x prefix from a puzzle hash in hex format.