formacao
This commit is contained in:
+1
-1
@@ -8,4 +8,4 @@ export type TimestampVerificationResult = {
|
||||
timestamp: Date;
|
||||
};
|
||||
export declare function getTSATimestamp(timestamp: RFC3161Timestamp, data: Buffer, timestampAuthorities: CertAuthority[]): TimestampVerificationResult;
|
||||
export declare function getTLogTimestamp(entry: TransparencyLogEntry): TimestampVerificationResult;
|
||||
export declare function getTLogTimestamp(entry: TransparencyLogEntry): TimestampVerificationResult | undefined;
|
||||
|
||||
+4
@@ -12,6 +12,10 @@ function getTSATimestamp(timestamp, data, timestampAuthorities) {
|
||||
};
|
||||
}
|
||||
function getTLogTimestamp(entry) {
|
||||
// Only entries with an inclusion promise provide a verifiable timestamp
|
||||
if (!entry.inclusionPromise) {
|
||||
return undefined;
|
||||
}
|
||||
return {
|
||||
type: 'transparency-log',
|
||||
logID: entry.logId.keyId,
|
||||
|
||||
Reference in New Issue
Block a user