public async Task ConvertPublicKeyToTonSafeFormat() { ResultOfConvertPublicKeyToTonSafeFormat result = await _tonClient.Crypto.ConvertPublicKeyToTonSafeFormat(new ParamsOfConvertPublicKeyToTonSafeFormat { PublicKey = "06117f59ade83e097e0fb33e5d29e8735bda82b3bf78a015542aaa853bb69600" }); result.TonPublicKey.Should().Be("PuYGEX9Zreg-CX4Psz5dKehzW9qCs794oBVUKqqFO7aWAOTD"); }
public async Task MnemonicDeriveSignKeys() { KeyPair result = await _tonClient.Crypto.MnemonicDeriveSignKeys(new ParamsOfMnemonicDeriveSignKeys { Phrase = "abandon math mimic master filter design carbon crystal rookie group knife young" }); ResultOfConvertPublicKeyToTonSafeFormat anotherResult = await _tonClient.Crypto.ConvertPublicKeyToTonSafeFormat( new ParamsOfConvertPublicKeyToTonSafeFormat { PublicKey = result.Public }); anotherResult.TonPublicKey.Should().Be("PuZhw8W5ejPJwKA68RL7sn4_RNmeH4BIU_mEK7em5d4_-cIx"); }
public async Task MnemonicDeriveSignKeysWithDictWithWord() { KeyPair result = await _tonClient.Crypto.MnemonicDeriveSignKeys(new ParamsOfMnemonicDeriveSignKeys { Phrase = "unit follow zone decline glare flower crisp vocal adapt magic much mesh cherry teach mechanic rain float vicious solution assume hedgehog rail sort chuckle", Dictionary = 0, WordCount = 24 }); ResultOfConvertPublicKeyToTonSafeFormat anotherResult = await _tonClient.Crypto.ConvertPublicKeyToTonSafeFormat( new ParamsOfConvertPublicKeyToTonSafeFormat { PublicKey = result.Public }); anotherResult.TonPublicKey.Should().Be("PuYTvCuf__YXhp-4jv3TXTHL0iK65ImwxG0RGrYc1sP3H4KS"); }
public async Task MnemonicDeriveSignKeysWithDictWithWordWithPath() { KeyPair result = await _tonClient.Crypto.MnemonicDeriveSignKeys(new ParamsOfMnemonicDeriveSignKeys { Phrase = "unit follow zone decline glare flower crisp vocal adapt magic much mesh cherry teach mechanic rain float vicious solution assume hedgehog rail sort chuckle", Path = "m", Dictionary = 0, WordCount = 24 }); ResultOfConvertPublicKeyToTonSafeFormat anotherResult = await _tonClient.Crypto.ConvertPublicKeyToTonSafeFormat( new ParamsOfConvertPublicKeyToTonSafeFormat { PublicKey = result.Public }); anotherResult.TonPublicKey.Should().Be("PubDdJkMyss2qHywFuVP1vzww0TpsLxnRNnbifTCcu-XEgW0"); }