Example #1
0
 /// <summary>
 ///     Creates a new Stellar KeyPair from a strkey encoded Stellar account ID.
 /// </summary>
 /// <param name="accountId">accountId The strkey encoded Stellar account ID.</param>
 /// <returns>
 ///     <see cref="KeyPair" />
 /// </returns>
 public static KeyPair FromAccountId(string accountId)
 {
     byte[] decoded = StrKey.DecodeStellarAccountId(accountId);
     return(FromPublicKey(decoded));
 }
Example #2
0
 /// <summary>
 ///     Creates a new Stellar KeyPair from a strkey encoded Stellar secret seed.
 /// </summary>
 /// <param name="seed">eed Char array containing strkey encoded Stellar secret seed.</param>
 /// <returns>
 ///     <see cref="KeyPair" />
 /// </returns>
 public static KeyPair FromSecretSeed(string seed)
 {
     byte[] bytes = StrKey.DecodeStellarSecretSeed(seed);
     return(FromSecretSeed(bytes));
 }