mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-08 16:23:12 +00:00
replace serilization in sequencer
This commit is contained in:
parent
6066554a7a
commit
a9bd1a1a5c
@ -1,5 +1,5 @@
|
|||||||
use accounts::account_core::{AccountAddress, PublicKey};
|
use accounts::account_core::{AccountAddress, PublicKey};
|
||||||
use elliptic_curve::group::GroupEncoding;
|
use k256::AffinePoint;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
@ -16,10 +16,8 @@ impl AccountPublicData {
|
|||||||
viewing_public_key: Vec<u8>,
|
viewing_public_key: Vec<u8>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
nullifier_public_key: PublicKey::from_bytes(nullifier_public_key.as_slice().into())
|
nullifier_public_key: serde_json::from_slice::<AffinePoint>(&nullifier_public_key).unwrap(),
|
||||||
.unwrap(),
|
viewing_public_key: serde_json::from_slice::<AffinePoint>(&viewing_public_key).unwrap(),
|
||||||
viewing_public_key: PublicKey::from_bytes(viewing_public_key.as_slice().into())
|
|
||||||
.unwrap(),
|
|
||||||
address,
|
address,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user