mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 06:13:10 +00:00
nit
This commit is contained in:
parent
c6fb383adf
commit
18489be4d1
@ -4,6 +4,8 @@ use tiny_keccak::{Hasher, Keccak};
|
|||||||
// TODO: Consider wrapping `AccountAddress` in a struct.
|
// TODO: Consider wrapping `AccountAddress` in a struct.
|
||||||
|
|
||||||
pub type AccountAddress = [u8; 32];
|
pub type AccountAddress = [u8; 32];
|
||||||
|
|
||||||
|
/// Returns the address associated with a public key
|
||||||
pub fn from_public_key(public_key: &SignaturePublicKey) -> AccountAddress {
|
pub fn from_public_key(public_key: &SignaturePublicKey) -> AccountAddress {
|
||||||
let mut address = [0; 32];
|
let mut address = [0; 32];
|
||||||
let mut keccak_hasher = Keccak::v256();
|
let mut keccak_hasher = Keccak::v256();
|
||||||
|
|||||||
@ -17,8 +17,6 @@ pub mod secret_holders;
|
|||||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||||
///Entrypoint to key management
|
///Entrypoint to key management
|
||||||
pub struct AddressKeyHolder {
|
pub struct AddressKeyHolder {
|
||||||
//Will be useful in future
|
|
||||||
#[allow(dead_code)]
|
|
||||||
top_secret_key_holder: TopSecretKeyHolder,
|
top_secret_key_holder: TopSecretKeyHolder,
|
||||||
pub utxo_secret_key_holder: UTXOSecretKeyHolder,
|
pub utxo_secret_key_holder: UTXOSecretKeyHolder,
|
||||||
pub_account_signing_key: PublicAccountSigningKey,
|
pub_account_signing_key: PublicAccountSigningKey,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user