mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-25 08:33:08 +00:00
fmt
This commit is contained in:
parent
cfebb9d8b4
commit
74fa7c9435
@ -10,7 +10,8 @@ pub struct NullifierPublicKey(pub [u8; 32]);
|
||||
|
||||
impl From<&NullifierPublicKey> for AccountId {
|
||||
fn from(value: &NullifierPublicKey) -> Self {
|
||||
const PRIVATE_ACCOUNT_ID_PREFIX: &[u8; 32] = b"/LEE/v0.3/AccountId/Private/\x00\x00\x00\x00";
|
||||
const PRIVATE_ACCOUNT_ID_PREFIX: &[u8; 32] =
|
||||
b"/LEE/v0.3/AccountId/Private/\x00\x00\x00\x00";
|
||||
|
||||
let mut bytes = [0; 64];
|
||||
bytes[0..32].copy_from_slice(PRIVATE_ACCOUNT_ID_PREFIX);
|
||||
@ -27,8 +28,6 @@ impl AsRef<[u8]> for NullifierPublicKey {
|
||||
|
||||
impl From<&NullifierSecretKey> for NullifierPublicKey {
|
||||
fn from(value: &NullifierSecretKey) -> Self {
|
||||
//TODO: adjusting
|
||||
// See if this fixes the core issues
|
||||
let mut bytes = Vec::new();
|
||||
const PREFIX: &[u8; 9] = b"LEE/chain";
|
||||
const SUFFIX_1: &[u8; 1] = &[7];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user