-
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
Starknet #17
base: master
Are you sure you want to change the base?
Starknet #17
Conversation
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.
pretty good - just got some things I'd like changed and some questions I'd like answered
}; | ||
|
||
// Update the NodeIrysConfig type to include TokenOptions for tokenOpts | ||
interface NodeIrysConfig<T> { |
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.
why is there an unused generic here?
const addressLength = 32; | ||
|
||
// Get the returned public key and convert to a buffer | ||
const returnedPubKey = await this.getAccountPublicKey(); |
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.
this function should be in getPublicKey, the result from getPublicKey
should be able to be passed into ownerToAddress
to go from publicKey -> Address, to mimic what happens when we take the publicKey from a transaction when verifying it
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 thought the conclusion was to have the ownerToAddress compare the public from the signer instance with the publickey
returned from getAccountPublickey
and if it is equal , then we can return the address
} | ||
|
||
getPublicKey(): string | Buffer { | ||
return this.signer.publicKey; |
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 don't think this method is correct given our compound public key definition
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 method above return the publickey value directly from the Signer instance
No description provided.