Skip to content

feat: attestations PoC#1869

Draft
aleortega wants to merge 1 commit intomainfrom
poc/attestations
Draft

feat: attestations PoC#1869
aleortega wants to merge 1 commit intomainfrom
poc/attestations

Conversation

@aleortega
Copy link
Member

WIP

beneficiary: string
itemUrn: string
issuedAt: number
expiresAt: number
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about making it clear here that expiresAt is in seconds?

Comment on lines +120 to +130
for (const attestation of attestations) {
const result = await validateOwnershipAttestation(attestation, deployer, timestamp)

if (result.valid && result.itemUrn) {
validUrns.add(result.itemUrn.toLowerCase())
} else if (result.reason) {
errors.push(result.reason)
}
}

return { validUrns, errors }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about doing all of this concurrently using Promise.all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants