Class: AuditReport

Database. AuditReport


new AuditReport(properties)

Describes the result of an audit as a report to directories
Parameters:
Name Type Description
properties object
Properties
Name Type Description
reporter string Identity key of the reporter
provider string Identity key of the provider
challenge string Challenge key given to provider
expected string Expected challenge response
actual string Actual challenge response
Source:

Methods


<static> methods.getSigningArray()

Returns the array of keys needed to sign the report
Source:
Returns:
Type
Array.<string>

<static> methods.toCompressedAuthenticated(privateKey)

Returns a serialized and cryptographically signed version of this report
Parameters:
Name Type Description
privateKey buffer SECP256K1 private key
Source:
Returns:
Type
Array.<string>

<static> statics.verifyCompressedAuthenticated(compressed)

Verifies the signature of a compressed and authenticated report
Parameters:
Name Type Description
compressed Array.<string> The compressed report
Source:
Returns:
Type
boolean