Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

cbor import not working #47

Open
MonikaB13 opened this issue May 12, 2022 · 1 comment
Open

cbor import not working #47

MonikaB13 opened this issue May 12, 2022 · 1 comment

Comments

@MonikaB13
Copy link

from the guidelines at https://github.com/hyperledger/sawtooth-sdk-java/blob/main/docs/source/using_java_sdk.rst, in the enconding your payload section

import co.nstant.in.cbor.CborBuilder
import co.nstant.in.cbor.CborEncoder

does not work. Is there something I need in my gradle file also? I tried implementation("org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.3.3") but that gives a 502 bad gateway error when I try building. So just wondering how do I get that import working?

@MonikaB13
Copy link
Author

So you need this line in your gradle file. It was super hard to find:

implementation("co.nstant.in:cbor:0.9")

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

No branches or pull requests

1 participant