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