(value: RecoverableSignature)
| 21 | |
| 22 | impl From<RecoverableSignature> for Signature { |
| 23 | fn from(value: RecoverableSignature) -> Self { |
| 24 | let (recovery_id, signature) = value.serialize_compact(); |
| 25 | |
| 26 | let v = recovery_id.to_i32() as u64; |
| 27 | let r = H256::from_slice(&signature[..32]); |
| 28 | let s = H256::from_slice(&signature[32..]); |
| 29 | |
| 30 | Signature { v, r, s } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | impl TryInto<RecoverableSignature> for Signature { |
nothing calls this directly
no outgoing calls
no test coverage detected