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

Possible deserialization issue #45

Open
nemo83 opened this issue Jan 20, 2025 · 1 comment
Open

Possible deserialization issue #45

nemo83 opened this issue Jan 20, 2025 · 1 comment

Comments

@nemo83
Copy link

nemo83 commented Jan 20, 2025

Hello

quick message to report a possible deserialization issue in apollo.

I currently have a tx built w/ lucid evolution, which needs to be imported and signed by apollo. This is the tx hex bytes.

84aa00d90102828258209461ba61e31f9adfa12cc294ec16bb776c859894e09d64c686ece4a848ae73be00825820b474d3753980e74cf9e9f00dc3acd91c385a6f3fd461f76cbd903d5a252d7988000183a300581d701edfb25decf8b4f59462c2c2a517f3bbfe896d00772a856836fbd70501821a00140ef6a1581cbda48796e4c9e16d0350c8e42d3ea6682ee084d9ffff47b50d20e7f1a14768616e646c657201028201d8185839d8799fd8799f0100009f1864ffffd8799f581cbda48796e4c9e16d0350c8e42d3ea6682ee084d9ffff47b50d20e7f14768616e646c6572ffffa300581d70953ac34e55c92445e295b175365ebb872abc14f1c468b7b950c8d8c001821a00251778a1581c911db1dbde441b8e874dd7cd6ee14ce6abd3544edbc027c79c5dde30a1581986358ebc10ae36be23a08c95066da9baa9d47a5af2c9db643001028201d818590128d8799fd8799fd8799f4c76657373656c6f7261636c65d8799f0103ff1b000075ded9f680001b0006722feb7b00001b0000008bb2c97000d8799f0000ffd8799f001912c7ff9fd8799fd8799f010001014100ffd8799f9f0001ff1821040c4001ff0000d87980ffd8799fd8799f010001014100ffd8799f9f0001ff182001014001ff0000d87980ffffffbfd8799f001912c7ffd8799f1b181c621cdfe371405820574fdf2d671ef3f4950ef9895eac248db07f449973197a1ee911c1ee0b13c16fd8799f5820f29f789e9c63a3b1399f4403a13e3e97badf7cfb6573b707f9877fac244f4433ffffffffd8799f581c911db1dbde441b8e874dd7cd6ee14ce6abd3544edbc027c79c5dde30581986358ebc10ae36be23a08c95066da9baa9d47a5af2c9db6430ffff82581d60247570b8ba7dc725e9ff37e9757b8148b4d5a125958edac2fd4417b81b00000006fbf42b21021a000a69670319186509a1581c911db1dbde441b8e874dd7cd6ee14ce6abd3544edbc027c79c5dde30a1581986358ebc10ae36be23a08c95066da9baa9d47a5af2c9db6430010b58201cba6090eb3fd2dd042360b2c9fa0c9e4cbffca7be4d03351ad1dfe833e1a90a0dd90102818258209461ba61e31f9adfa12cc294ec16bb776c859894e09d64c686ece4a848ae73be001082581d60247570b8ba7dc725e9ff37e9757b8148b4d5a125958edac2fd4417b81b00000006fbd760c0111a004c4b4012d9010282825820dabe77056214d9a6409991715c8ab51d379fd23609d27a944f1d4fc51d463f9600825820d13cba4c4e0f9cb2622628e85249d157ab90fbdbaf0482c23667ea46167481e300a10582840001d87980821a0003ab0f1a04f9d4bf840100d8799fd8799f581cbda48796e4c9e16d0350c8e42d3ea6682ee084d9ffff47b50d20e7f14768616e646c6572ffff821a000b56061a0d8011c1f5f6

I'm currently using these versions:

github.com/Salvionied/apollo v1.0.13-0.20250116203813-b1928b7dbead
github.com/blinklabs-io/gouroboros v0.107.1

Code looks like:


[...]
type CustomChainContext struct {
	Base.ChainContext
}

[...]
func NewCustomChainContext() CustomChainContext {
	return CustomChainContext{
		ChainContext: FixedChainContext.InitFixedChainContext(),
	}
}

[...]
txAsString := "tx_bytes_above"
aCtx := NewCustomChainContext()
tx := apollo.New(&aCtx)
tx, err := tx.LoadTxCbor(txAsString)
if err != nil {
	fmt.Println("Error!", err.Error())
}
fmt.Println("Hello World!", tx.Fee)

Thanks in advance, and please let me know if you need anything else!!

@nemo83
Copy link
Author

nemo83 commented Jan 20, 2025

error could be related to https://github.com/IntersectMBO/cardano-ledger/blob/c9a4a44d2e69a88130e5ca6405bd133a9afdc473/eras/conway/impl/cddl-files/extra.cddl#L1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant