public Endorsement( Identity endorser, IAssertion assertion) { this.AssertionContent = assertion.ToString(); this.SignedEndorsement = endorser.KeyPairsAssertingOwnership.First().Sign(assertion.ToString()); this.EndorserGUID = endorser.IdentityGUID.ToString(); this.EndorserPublicKeyFingerprint = endorser.KeyPairsAssertingOwnership.First().Fingerprint; }
public IAssertion <T> Or <S>(IAssertion <S> otherAssertion, string separator = ". ") { if (otherAssertion == null || otherAssertion.ErrorCount == 0) { return(this); } if (!_isValid) { _isValid |= otherAssertion.True; _sb.Append(otherAssertion.ToString(skipTrace: true)); } else { _isValid |= otherAssertion.True; _sb.Append(separator ?? ". ").AppendLine(otherAssertion.ToString(skipTrace: true)); } return(this); }