public Task <BigInteger> GetAsync() { var resource = $"{EmbeddedResourceConstants.ResourceBasePath}{ResourceFile}"; var keyPair = (AsymmetricCipherKeyPair)EmbeddedPemResource.Load(resource); return(Task.FromResult(((ECPrivateKeyParameters)keyPair.Private).D)); }
public Task <ECPublicKeyParameters> GetAsync() { var resource = $"{EmbeddedResourceConstants.ResourceBasePath}{ResourceFile}"; return(Task.FromResult((ECPublicKeyParameters)EmbeddedPemResource.Load(resource))); }