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;
private static Gen <PubKeyProvider> ConstPubKeyProviderGen() => from pk in CryptoGenerator.PublicKey() select PubKeyProvider.NewConst(pk);