public void Reset() { #if BY_PASS password?.Dispose(); password = null; #elif BY_WIF wif?.Dispose(); wif = null; #else #endif }
public static Keys FromWif(IWif wif) { var keys = new Dictionary <AuthorityClassification, KeyPair>(); var roles = new[] { AuthorityClassification.Active, AuthorityClassification.Echorand }; foreach (var role in roles) { keys[role] = new KeyPair(wif, EDDSA.KeyFactory.Create()); } return(new Keys(keys)); }
public async Task <bool> Update(IWif newWif) { var keys = Keys.FromWif(newWif); var isValid = await ValidateKeys(keys); keys.Dispose(); if (isValid) { wif?.Dispose(); wif = newWif; }
public KeyPair(IWif wif, IPrivateKeyFactory factory) { privateKey = factory.FromWif(wif.Get()); }
public AuthorizationData(UserNameFullAccountDataPair userNameData, IWif wif) { this.wif = wif;
public IPromise <AuthorizationResult> AuthorizationBy(string userName, IWif wif)
private IPromise <AuthorizationResult> AuthorizationBy(uint id, IWif wif)
private IPromise <AuthorizationResult> AuthorizationBy(UserNameFullAccountDataPair dataPair, IWif wif)