remove NonePod and use dummy signed pods (#272)
* remove NonePod and use dummy signed pods * apply suggestion by @arnaucube
This commit is contained in:
parent
03485d6fd3
commit
3b4edab1f5
6 changed files with 54 additions and 49 deletions
|
|
@ -120,6 +120,15 @@ impl MockSignedPod {
|
|||
kvs: data.kvs,
|
||||
}))
|
||||
}
|
||||
/// Generate a valid MockSignedPod with a public deterministic public key and no other
|
||||
/// key-values than the default ones. This is used for padding.
|
||||
pub fn dummy() -> MockSignedPod {
|
||||
MockSigner {
|
||||
pk: "dummy".to_string(),
|
||||
}
|
||||
._sign(&Params::default(), &HashMap::new())
|
||||
.expect("valid")
|
||||
}
|
||||
}
|
||||
|
||||
impl Pod for MockSignedPod {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue