Skip to content
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

[Bug]: Secret Ownership with multiple public keys not working using transactionBuilder.html #20

Closed
roychowdhuryrohit-dev opened this issue Jan 14, 2022 · 1 comment · Fixed by #77
Assignees
Labels
bug Something isn't working

Comments

@roychowdhuryrohit-dev
Copy link

roychowdhuryrohit-dev commented Jan 14, 2022

What happened?

Assuming archethic-foundation/archethic-node#177 is fixed, using the example/transactionBuilder.html when I try to pass multiple public keys in ownership, I get the following error.

Screenshot 2022-01-14 at 23 48 42

GraphQL request payload

Screenshot 2022-01-14 at 21 54 35

On logging the variable authorizedKeys in previousSignaturePayload()

let authorizedKeysBuffer = [Uint8Array.from([authorizedKeys.length])]
authorizedKeys.forEach(({ publicKey, encryptedSecretKey }) => {
authorizedKeysBuffer.push(publicKey)
authorizedKeysBuffer.push(encryptedSecretKey)
})

Console output

Screenshot 2022-01-14 at 23 53 11

What is expected ?

Should get 200 OK response and transaction should appear in ArchEthic explorer as well in GraphQL workspace.

This issue doesn't occur when single public key is sent.

@roychowdhuryrohit-dev roychowdhuryrohit-dev added the bug Something isn't working label Jan 14, 2022
@roychowdhuryrohit-dev roychowdhuryrohit-dev changed the title [Bug]: Secret Ownership with multiple public keys not working with transactionBuilder.html [Bug]: Secret Ownership with multiple public keys not working using transactionBuilder.html Jan 14, 2022
@redDwarf03
Copy link
Member

Same things in dart SDK
this issue becomes blocking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants