pointer to the wallet instance
pointer to the returned pubkey
length of the returned pubkey
WalletT w; int rt = tagion_wallet_create_instance(&w); const passphrase = "some passphrase"; const pincode = "1234"; rt = tagion_wallet_create_wallet(&w, &passphrase[0], passphrase.length, &pincode[0], pincode.length); uint8_t* pubkey_buf; size_t pubkey_len; rt = tagion_wallet_get_current_pkey(&w, &pubkey_buf, &pubkey_len); assert(rt == ErrorCode.none); assert(pubkey_len == PUBKEYSIZE); const pkey = cast(Pubkey) pubkey_buf[0..pubkey_len].idup; rt = tagion_wallet_get_current_pkey(&w, &pubkey_buf, &pubkey_len); assert(rt == ErrorCode.none); assert(pubkey_len == PUBKEYSIZE); const _pkey = cast(Pubkey) pubkey_buf[0..pubkey_len].idup; assert(pkey == _pkey, "should not have changed");
Get the wallets current public key