-
Notifications
You must be signed in to change notification settings - Fork 0
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
TS Client Implementation #15
Conversation
fa76032
to
4f9cab9
Compare
public '@context'?: 'https://www.w3.org/ns/did/v1' | string | string[] = | ||
DidDocument.defaultContext(); | ||
public id: string; | ||
// public alsoKnownAs?: 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.
[non-blocking] Is this variable still needed?
// Verification Method for For 20-bytes Ethereum Keys | ||
EcdsaSecp256k1RecoveryMethod2020, | ||
// Verification Method for a full 32 bytes Secp256k1 Verification Key | ||
EcdsaSecp256k1VerificationKey2019, |
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.
The DiD registry contract only supports 20-byte ethereum keys
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.
Should we put that on the TODO? Generally it could support full keys, right? (The accessor just needs to convert back to a 20byte address).
"prepack": "yarn build", | ||
"generate-contract-types": "typechain --target=ethers-v5 --out-dir ./src/contracts/typechain-types ./src/contracts/abi/DIDRegistry.json", | ||
"spawn-devnet": "tenderly devnet spawn-rpc --project project --template bnb-testnet", | ||
"test:integration": "ts-mocha test/integration/**/*.test.ts" |
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.
I think the github workflow for running the integration test calls the command npm run integration-test
it need to be updated to this new command npm run test:integration
.
|
||
dotenv.config(); | ||
|
||
describe('Native TS Client Integration Test', () => { |
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.
Should there also be a test case for adding controllers?
b5c1a77
to
b8994ca
Compare
Provide client library @identity.com/did-bnb-client that conveniently exposes functions to interact with the on-chain EVM bases DIDRegistry contract. It comes with a thorough README and integration test that are exectuted in CI PR: #15 Signed-off-by: Martin Riedel <[email protected]> Reviewed-by: Robert Leonard <[email protected]>
b8994ca
to
750486c
Compare
Add did:bnb Typescript client library
Provide client library @identity.com/did-bnb-client that conveniently exposes functions to interact with the on-chain EVM bases DIDRegistry contract. It comes with a thorough README and integration test that are exectuted in CI
PR: #15
Signed-off-by: Martin Riedel [email protected]
Reviewed-by: Robert Leonard [email protected]