Skip to content

Regenerates signed transaction bytes which can result in slightly different transaction bytes #1436

@SimiHunjan

Description

@SimiHunjan

Description

txBytes, err := hedera.TransactionToBytes(tx) in the getTransactionBodyBytes method.

Under the hood, the SDK is unmarshalling and marshalling the SignedTransaction.BodyBytes which is non-deterministic and in some cases marshals a valid transaction body but with a different serialized field ordering/padding resulting in different bytes representing the same object.

The signature validation fails due to this non-deterministic

Steps to reproduce

see above

Additional context

No response

Hedera network

No response

Version

latest

Operating system

None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions