Пример #1
0
        private static string GetPublicIdentity(SecretPermanentIdentity identity)
        {
            var publicIdentity = new PublicPermanentIdentity()
            {
                TrustchainId = identity.TrustchainId,
                Value        = identity.Value
            };

            return(Utils.toBase64Json(publicIdentity));
        }
Пример #2
0
        public static string GenerateTestPermanentIdentity()
        {
            var identity = new SecretPermanentIdentity(TrustchainId, TrustchainPrivateKey, UserId);

            return(Utils.toBase64Json(identity));
        }