public string CreateTxn(byte[] seed, string JsonTxn) { var walletIndex = 0; var keypair = Ripple.Signing.K256.K256KeyGenerator.From128Seed(seed, walletIndex); var alt = TxSigner.FromKeyPair(keypair).SignJson(JObject.Parse(JsonTxn)); return(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(alt.Hash + "|" + alt.TxBlob + "|" + alt.TxJson))); }
private void SetSigningKey(IKeyPair keyPair) { KeyPair = keyPair; Signer = TxSigner.FromKeyPair(keyPair); }