bindings/sdk/python: Mint` example

This commit is contained in:
thesimplekid
2023-09-02 13:27:36 +01:00
parent 08067fb793
commit b15b3873d3
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
from cashu_sdk import Mint;
mint = Mint("supersecret", "0/0/0/0", {}, [], 32)
print(mint.active_keyset_pubkeys().keys().as_hashmap())

View File

@@ -317,7 +317,6 @@ interface Wallet {
interface Mint {
constructor(string secret, string derivation_path, record<string, MintKeySet> inactive_keysets, sequence<string> spent_secrets, u8 max_order);
KeySet active_keyset_pubkeys();
KeySetResponse keysets();
MintKeySet active_keyset();
@@ -332,5 +331,4 @@ interface Mint {
void verify_melt_request(MeltRequest melt_request);
[Throws=CashuSdkError]
MeltResponse process_melt_request(MeltRequest melt_request, string preimage, Amount totoal_spent);
};