-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade to ucan 0.9 #95
Conversation
@@ -390,3 +384,7 @@ export interface URI<P extends Protocol = Protocol> extends URL { | |||
export type URIString<P extends URI> = `${URI['protocol']}${string}` & { | |||
protocol?: Protocol | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export interface Verifier {
verify(did: UCAN.DID, signature: Signature): Await<boolean>
}
@@ -390,3 +384,7 @@ export interface URI<P extends Protocol = Protocol> extends URL { | |||
export type URIString<P extends URI> = `${URI['protocol']}${string}` & { | |||
protocol?: Protocol | |||
} | |||
|
|||
export interface PrincipalParser { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export interface PrincipalParser { | |
export interface VerifierParser { |
Object.defineProperties(this, { bytes: { value: bytes } }) | ||
return bytes | ||
} | ||
class Ed25519Principal extends Uint8Array { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class Ed25519Principal extends Uint8Array { | |
class Ed25519Verifier extends Uint8Array { |
packages/core/package.json
Outdated
@@ -31,7 +31,7 @@ | |||
"dependencies": { | |||
"@ipld/car": "^4.1.5", | |||
"@ipld/dag-cbor": "^7.0.3", | |||
"@ipld/dag-ucan": "3.0.0-beta", | |||
"@ipld/dag-ucan": "link:/Users/gozala/Projects/js-dag-ucan", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@ipld/dag-ucan": "link:/Users/gozala/Projects/js-dag-ucan", | |
"@ipld/dag-ucan": "4.0.0-beta", |
packages/interface/package.json
Outdated
@@ -23,7 +23,7 @@ | |||
"build": "tsc --build" | |||
}, | |||
"dependencies": { | |||
"@ipld/dag-ucan": "3.0.0-beta", | |||
"@ipld/dag-ucan": "link:/Users/gozala/Projects/js-dag-ucan", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@ipld/dag-ucan": "link:/Users/gozala/Projects/js-dag-ucan", | |
"@ipld/dag-ucan": "4.0.0-beta", |
packages/principal/package.json
Outdated
"typecheck": "tsc --build", | ||
"build": "tsc --build" | ||
}, | ||
"dependencies": { | ||
"@ipld/dag-ucan": "3.0.0-beta", | ||
"@ipld/dag-ucan": "link:/Users/gozala/Projects/js-dag-ucan", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@ipld/dag-ucan": "link:/Users/gozala/Projects/js-dag-ucan", | |
"@ipld/dag-ucan": "4.0.0-beta", |
No description provided.