v0.5.2-pre.002
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
// file: ks-wallet/src/constants.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! Local constants for the `ks-wallet` crate.
|
||||
|
||||
/// Canonical tracing target for this crate.
|
||||
pub(crate) const TRACING_TARGET: &str = "ks-wallet";
|
||||
/// Native wallet file extension without the leading dot.
|
||||
pub const KSWALLET_FILE_EXTENSION: &str = "kswallet";
|
||||
/// Native wallet format identification magic.
|
||||
pub(crate) const KSWALLET_MAGIC: &[u8; 8] = b"KSWALLET";
|
||||
/// Native wallet format version used by the identification prefix.
|
||||
pub(crate) const KSWALLET_FORMAT_VERSION: u16 = 1;
|
||||
/// Number of bytes required to identify a native wallet file.
|
||||
pub(crate) const KSWALLET_IDENTIFICATION_LENGTH: usize = 10;
|
||||
/// Number of bytes stored by the standard Solana keypair JSON format.
|
||||
pub(crate) const SOLANA_KEYPAIR_LENGTH: usize = 64;
|
||||
|
||||
Reference in New Issue
Block a user