redgold-schema 0.1.0

A relative proof conflict resolution & irreversibility service with trust modeling custodial pooling and executor contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::bytes_data;
use crate::structs::{Signature, SignatureType};

impl Signature {
    pub fn ecdsa(bytes: Vec<u8>) -> Self {
        Self {
            bytes: bytes_data(bytes),
            signature_type: SignatureType::Ecdsa as i32,
        }
    }
    pub fn hardware(bytes: Vec<u8>) -> Self {
        Self {
            bytes: bytes_data(bytes),
            signature_type: SignatureType::EcdsaBitcoinSignMessageHardware as i32,
        }
    }
}