@@ -23,15 +23,15 @@ pub const SIG_CODECS: [Codec; 4] = [
2323 // Codec::Es384Msig,
2424 // Codec::Es521Msig,
2525 // Codec::Rs256Msig,
26- Codec :: Es256KMsig //,
27- //Codec::LamportMsig,
26+ Codec :: Es256KMsig , //,
27+ //Codec::LamportMsig,
2828] ;
2929
3030/// the list of signature share codecs supported
3131pub const SIG_SHARE_CODECS : [ Codec ; 2 ] = [
3232 Codec :: Bls12381G1ShareMsig ,
33- Codec :: Bls12381G2ShareMsig //,
34- //Codec::LamportShareMsig,
33+ Codec :: Bls12381G2ShareMsig , //,
34+ //Codec::LamportShareMsig,
3535] ;
3636
3737/// the multisig sigil
@@ -254,6 +254,7 @@ impl Builder {
254254 }
255255
256256 /// create new multisig from ssh Signature
257+ #[ cfg( feature = "ssh" ) ]
257258 pub fn new_from_ssh_signature ( sig : & ssh_key:: Signature ) -> Result < Self , Error > {
258259 let mut attributes = BTreeMap :: new ( ) ;
259260 use ssh_key:: Algorithm :: * ;
@@ -602,6 +603,7 @@ mod tests {
602603 assert_eq ! ( ms1, ms3) ;
603604 }
604605
606+ #[ cfg( feature = "ssh" ) ]
605607 #[ test]
606608 fn test_eddsa_ssh_roundtrip ( ) {
607609 let ms1 = Builder :: new ( Codec :: EddsaMsig )
@@ -617,6 +619,7 @@ mod tests {
617619 assert_eq ! ( ms1, ms2) ;
618620 }
619621
622+ #[ cfg( feature = "ssh" ) ]
620623 #[ test]
621624 fn test_es256k_ssh_roundtrip ( ) {
622625 let ms1 = Builder :: new ( Codec :: Es256KMsig )
@@ -632,6 +635,7 @@ mod tests {
632635 assert_eq ! ( ms1, ms2) ;
633636 }
634637
638+ #[ cfg( feature = "ssh" ) ]
635639 #[ test]
636640 fn test_bls_signature_ssh_roundtrip ( ) {
637641 let sk = blsful:: Bls12381G1 :: new_secret_key ( ) ;
@@ -658,6 +662,7 @@ mod tests {
658662 assert_eq ! ( ms1, ms2) ;
659663 }
660664
665+ #[ cfg( feature = "ssh" ) ]
661666 #[ test]
662667 fn test_bls_signature_combine_ssh_roundtrip ( ) {
663668 let sk = blsful:: Bls12381G2 :: new_secret_key ( ) ;
0 commit comments