v0.2.5-pre.007

This commit is contained in:
2026-08-19 18:08:01 +02:00
parent 25edcc231e
commit 46afe10423
17 changed files with 1431 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-wallet-lib/tests/public_api.rs
// version: 6
// version: 7
//! Public API canaries for the Wallet foundation.
@@ -55,8 +55,10 @@ fn wallet_error_codes_are_available_from_crate_root() {
ksp_wallet_lib::ERROR_CODE_TRANSFER_FORMAT_UNSUPPORTED,
ksp_wallet_lib::ERROR_CODE_KEY_MATERIAL_INVALID,
ksp_wallet_lib::ERROR_CODE_SIGNATURE_FAILED,
ksp_wallet_lib::ERROR_CODE_NOTE_NOT_FOUND,
ksp_wallet_lib::ERROR_CODE_STATE_CONFLICT,
];
assert_eq!(codes.len(), 15);
assert_eq!(codes.len(), 17);
for code in codes {
assert_eq!(code.domain(), "wallet");
}
@@ -112,3 +114,11 @@ fn public_pre_006_file_persistence_surface_is_available_from_crate_root() {
let inspect_future = ksp_wallet_lib::inspect_locked_wallet_file_v1(path);
drop(inspect_future);
}
#[test]
fn public_pre_007_owner_signing_and_administration_surface_is_available() {
let sign_method: fn(&ksp_wallet_lib::WalletOwner, &[u8]) -> ksp_core_lib::Result<[u8; ksp_wallet_lib::KSPWALLET_SOLANA_SIGNATURE_BYTES]> =
ksp_wallet_lib::WalletOwner::sign;
let _ = sign_method;
assert_eq!(ksp_wallet_lib::KSPWALLET_SOLANA_SIGNATURE_BYTES, 64);
}