zaru-core 0.1.0

A secure payment model engine with transaction state machine and cryptographic verification
1
2
3
4
5
6
7
8
9
10
11
12
13
use ed25519_dalek::{Signature as DalekSignature, VerifyingKey};

#[derive(Clone, Debug)]
pub struct Signature {
    pub sig: DalekSignature,
    pub public_key: VerifyingKey,
}

impl Signature {
    pub fn new(sig: DalekSignature, public_key: VerifyingKey) -> Self {
        Self { sig, public_key }
    }
}