Enums§
- Address
Error - Errors you can get while trying to decode an address.
- Coin
Selection Error - An error that occurs when selecting coins.
- Puzzle
Hash Error - 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
0xprefix from a puzzle hash in hex format.