-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: castor create signed prism did operation #347
base: main
Are you sure you want to change the base?
Conversation
587501a
to
27f5263
Compare
1a58c32
to
a238d85
Compare
…stor Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]>
9c311ef
to
460d9a9
Compare
Pull Request Test Coverage Report for Build 12161414747Details
💛 - Coveralls |
interface ProcessEnv { | ||
NEXT_PUBLIC_BLOCKFROST_API_KEY: string; | ||
} | ||
} |
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.
not sure this belongs on the project root, isn't it demo specific?
* @param {PublicKey[]} issuanceKeys | ||
* @returns {Promise<{operationHex: string, metadataBody: {v: number, c: string[]}, did: DID}>} | ||
*/ | ||
async createOperation( |
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.
can we improve this name? "Operation" feels a bit vague?
const stateHashHex = Buffer.from(encodedStateHash).toString("hex"); | ||
const base64State = base64.base64url.baseEncode(encodedState); | ||
const methodSpecificId = PrismDID.parseMethodId([stateHashHex, base64State]); | ||
const did = new DID("did", "prism", methodSpecificId.toString()); |
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.
if we're returning a prismDID shouldn't the createPrismDID function handle that?
Description:
Implemented sign operation in castor, which enables the SDK to create and publish a prism did using cip-30, any wallet really out there can now sign this operations and publish them onchain.
Also fixed wrong signatures in Apollo, we were not able to create a proper DER encoded secp256k1 signature, causing an issue on publishing the transaction.
published did in mainnet here
Checklist: