mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-26 14:36:20 +08:00
use impl_serde_byte_array
This commit is contained in:
@@ -94,12 +94,12 @@ pub const STACKS_MICROBLOCK_VERSION: u8 = 0;
|
||||
pub const MAX_TRANSACTION_LEN: u32 = MAX_MESSAGE_LEN; // TODO: shrink
|
||||
pub const MAX_BLOCK_LEN: u32 = MAX_MESSAGE_LEN; // TODO: shrink
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct StacksBlockId(pub [u8; 32]);
|
||||
impl_array_newtype!(StacksBlockId, u8, 32);
|
||||
impl_array_hexstring_fmt!(StacksBlockId);
|
||||
impl_byte_array_newtype!(StacksBlockId, u8, 32);
|
||||
impl_byte_array_from_column!(StacksBlockId);
|
||||
impl_byte_array_serde!(StacksBlockId);
|
||||
|
||||
impl From<StacksAddress> for StandardPrincipalData {
|
||||
fn from(addr: StacksAddress) -> StandardPrincipalData {
|
||||
|
||||
Reference in New Issue
Block a user