public SignedTx SignStObject(StObject tx) { tx.SetFlag(CanonicalSigFlag); tx[Field.SigningPubKey] = _keyPair.CanonicalPubBytes(); tx[Field.TxnSignature] = _keyPair.Sign(tx.SigningData()); return(ValidateAndEncode(tx)); }
public static byte[] PubKeyHash(this IKeyPair pair) { return(HashUtils.PublicKeyHash(pair.CanonicalPubBytes())); }
private string GetAddressId(IKeyPair keypair) { return(Ripple.Address.AddressCodec.EncodeAddress(PublicKeyHash(keypair.CanonicalPubBytes()))); }