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

support signing pseudo operations coming in Oxford #435

Open
stephengaudet opened this issue Aug 11, 2023 · 4 comments
Open

support signing pseudo operations coming in Oxford #435

stephengaudet opened this issue Aug 11, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@stephengaudet
Copy link
Contributor

steps to reproduce:
1.configuring a staking baker has been documented https://hackmd.io/@nicolasochem/BypPmEgon
2.the key named baker0 in this article needs to then be configured in Signatory, and the octez-client of course needs to be updated to use Signatory for remote signing with this key
3.failure observed upon: ~ $ octez-client transfer 6000 from baker0 to baker0 --entrypoint stake --burn-cap 0.06425

expected:
signatory signs the operation successfully

actual:
octez client returns an error. Signatory logs: time="2023-08-11T21:28:44Z" level=error msg="gotez: unknown tag 6" pkh=tz1RKGhRF4TZNCXEfwyqZshGsVfrZeVU446B raw=0332af6f4019f09d4e554606af5beea1adab7d2343d9728321804529413fb3e66e6c003e448ad7954e0e6ec4894be256fbf00815b4e4d6ef04df0bae1c0080f882ad1600003e448ad7954e0e6ec4894be256fbf00815b4e4d6ff0600000002030b time="2023-08-11T21:28:44Z" level=error msg="Error signing request: gotez: unknown tag 6"

@stephengaudet stephengaudet added the bug Something isn't working label Aug 11, 2023
@stephengaudet
Copy link
Contributor Author

stephengaudet commented Aug 11, 2023

I suppose this error can be reproduced without going through the entire setup. from the logs we see:
pkh=tz1RKGhRF4TZNCXEfwyqZshGsVfrZeVU446B raw=0332af6f4019f09d4e554606af5beea1adab7d2343d9728321804529413fb3e66e6c003e448ad7954e0e6ec4894be256fbf00815b4e4d6ef04df0bae1c0080f882ad1600003e448ad7954e0e6ec4894be256fbf00815b4e4d6ff0600000002030b

using the file vault, the sk is { "name": "baker0", "value": "unencrypted:edsk4ZuzTnZUqetnF7icqpjQ3RT9GPJQ8HAHTRHZhKQQjWmeneQJ7C" }

and the config file entry used is tz1RKGhRF4TZNCXEfwyqZshGsVfrZeVU446B: allow: generic: - reveal - delegation - transaction block: endorsement: preendorsement: log_payloads: true

@stephengaudet stephengaudet changed the title error attempting to sign pseudo operation "stake" in Adaptive Issuance setup error attempting to sign pseudo operations Aug 15, 2023
@stephengaudet
Copy link
Contributor Author

the "set_delegate_parameters" pseudo operation also fails, the error log shows: level=error msg="gotez: unknown tag 9" pkh=tz1fcFKfPEHKX5RHSYX6q7FuYitbht2ytqZV raw=038e34486eac746524d03f5066e366cdb9ebf0323eda7c2d7357df60132289fe8e6c00db0c3a0f2c5760dc6a1dce2f6f639b2d60ee2f44df02c809970600000000db0c3a0f2c5760dc6a1dce2f6f639b2d60ee2f44ff090000001107070080ade20407070080a8d6b907030b signatory | time="2023-08-15T00:04:13Z" level=error msg="Error signing request: gotez: unknown tag 9" signatory | time="2023-08-15T00:04:13Z" level=info msg="POST /keys/tz1fcFKfPEHKX5RHSYX6q7FuYitbht2ytqZV" duration=2.112541ms hostname="signatory:6732" method=POST path=/keys/tz1fcFKfPEHKX5RHSYX6q7FuYitbht2ytqZV start_time="2023-08-15T00:04:13Z" status=400

pkh=tz1fcFKfPEHKX5RHSYX6q7FuYitbht2ytqZV

raw=038e34486eac746524d03f5066e366cdb9ebf0323eda7c2d7357df60132289fe8e6c00db0c3a0f2c5760dc6a1dce2f6f639b2d60ee2f44df02c809970600000000db0c3a0f2c5760dc6a1dce2f6f639b2d60ee2f44ff090000001107070080ade20407070080a8d6b907030b

{ "name": "baker", "value": "unencrypted:edsk4YSJN6doJsoBbu3xhD7qh8azyZdKQoedtuSc2JGTdhjn88fjzC" }

tz1fcFKfPEHKX5RHSYX6q7FuYitbht2ytqZV: allow: generic: - reveal - delegation - transaction block: endorsement: preendorsement: log_payloads: true

@stephengaudet stephengaudet added enhancement New feature or request and removed bug Something isn't working labels Aug 15, 2023
@stephengaudet
Copy link
Contributor Author

unstake

signatory  | time="2023-08-15T23:41:48Z" level=error msg="gotez: unknown tag 7" pkh=tz1QXYxbSfcWYMkVhLCyLpZKHmJP2LrYBLXK raw=039f1d14892b2464888e4c567a68655cb10db57f2a8456213ff26a4a25ec625b936c00359efb8f34c4c5fe63854739d10fca013f9823edc002e806ce0400000000359efb8f34c4c5fe63854739d10fca013f9823edff070000000700bfbfa8ca9a3a
signatory  | time="2023-08-15T23:41:48Z" level=error msg="Error signing request: gotez: unknown tag 7"
signatory  | time="2023-08-15T23:41:48Z" level=info msg="POST /keys/tz1QXYxbSfcWYMkVhLCyLpZKHmJP2LrYBLXK" duration=4.29175ms hostname="signatory:6732" method=POST path=/keys/tz1QXYxbSfcWYMkVhLCyLpZKHmJP2LrYBLXK start_time="2023-08-15T23:41:48Z" status=400

{ "name": "staker", "value": "unencrypted:edsk3yndL27HSaksAULw4q9MDcBagJWjVXtYZtcevnVrRmdbDqyY24" }

@stephengaudet
Copy link
Contributor Author

finalize_unstake
signatory | time="2023-08-15T23:44:35Z" level=info msg="GET /authorized_keys" duration=2.722666ms hostname="signatory:6732" method=GET path=/authorized_keys start_time="2023-08-15T23:44:35Z" status=200 signatory | time="2023-08-15T23:44:35Z" level=error msg="gotez: unknown tag 8" pkh=tz1QXYxbSfcWYMkVhLCyLpZKHmJP2LrYBLXK raw=039444a75cb8750eb805e891586acb5995ad3152ae2c6e3ca17c6e74aaeebcbb266c00359efb8f34c4c5fe63854739d10fca013f9823ed9903e806f90b00000000359efb8f34c4c5fe63854739d10fca013f9823edff0800000002030b signatory | time="2023-08-15T23:44:35Z" level=error msg="Error signing request: gotez: unknown tag 8" signatory | time="2023-08-15T23:44:35Z" level=info msg="POST /keys/tz1QXYxbSfcWYMkVhLCyLpZKHmJP2LrYBLXK" duration=5.338459ms hostname="signatory:6732" method=POST path=/keys/tz1QXYxbSfcWYMkVhLCyLpZKHmJP2LrYBLXK start_time="2023-08-15T23:44:35Z" status=400

{ "name": "staker", "value": "unencrypted:edsk3yndL27HSaksAULw4q9MDcBagJWjVXtYZtcevnVrRmdbDqyY24" }

@jevonearth jevonearth changed the title error attempting to sign pseudo operations support signing pseudo operations coming in Oxford Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants