示例#1
0
 public static Gen <HDKeyPathKVMap> HDKeyPaths() =>
 from itemNum in Gen.Choose(0, 15)
 from pks in Gen.ListOf(itemNum, CryptoGenerator.PublicKey())
 from map in HDKeyPaths(pks, itemNum)
 select map;
示例#2
0
 private static Gen <PubKeyProvider> ConstPubKeyProviderGen() =>
 from pk in CryptoGenerator.PublicKey()
 select PubKeyProvider.NewConst(pk);