pub fn from_bytes(sig: [u8; 64]) -> Result<Self, MusigError> {
        let mut Rbuf = [0u8; 32];
        let mut sbuf = [0u8; 32];
        Rbuf[..].copy_from_slice(&sig[..32]);
        sbuf[..].copy_from_slice(&sig[32..]);
        Ok(Signature {
            R: CompressedRistretto(Rbuf),
            s: Scalar::from_canonical_bytes(sbuf).ok_or(MusigError::BadArguments)?,
        })
    }
/// Decodes a signature from 64-byte array.
Decodes a signature from 64-byte array.
Decodes a signature from 64 - byte array .
pub fn from_bytes(sig: [u8; 64]) -> Result<Self, MusigError> {
        let mut Rbuf = [0u8; 32];
        let mut sbuf = [0u8; 32];
        Rbuf[..].copy_from_slice(&sig[..32]);
        sbuf[..].copy_from_slice(&sig[32..]);
        Ok(Signature {
            R: CompressedRistretto(Rbuf),
            s: Scalar::from_canonical_bytes(sbuf).ok_or(MusigError::BadArguments)?,
        })
    }
pub fn from_bytes ( sig : [ u8 ; 64 ] ) -> Result < Self , MusigError > { let mut Rbuf = [ 0u8 ; 32 ] ; let mut sbuf = [ 0u8 ; 32 ] ; Rbuf [ .. ] . copy_from_slice ( & sig [ .. 32 ] ) ; sbuf [ .. ] . copy_from_slice ( & sig [ 32 .. ] ) ; Ok ( Signature { R : CompressedRistretto ( Rbuf ) , s : Scalar :: from_canonical_bytes ( sbuf ) . ok_or ( MusigError :: BadArguments ) ? , } ) }
Decodes a signature from 64-byte array.
Decodes a signature from 64 - byte array .
sig
[u8; 64]
sig
[u8; 64]