コード例 #1
0
ファイル: KeyPair.cs プロジェクト: theHour/dotnet-stellar-sdk
        /// <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)
        {
            var decoded = StrKey.DecodeStellarAccountId(accountId);

            return(FromPublicKey(decoded));
        }
コード例 #2
0
ファイル: KeyPair.cs プロジェクト: theHour/dotnet-stellar-sdk
        /// <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)
        {
            var bytes = StrKey.DecodeStellarSecretSeed(seed);

            return(FromSecretSeed(bytes));
        }