Closed james-d-elliott closed 1 month ago
The recent changes introduce new functions for parsing credential request and creation responses directly from byte slices, enhancing flexibility and usability. A new utility function, decodeBytes
, is also added to handle JSON decoding from byte data. This streamlines operations by allowing developers to work with byte slices instead of io.Reader
, improving the overall API for credential-related functionalities.
Files | Change Summary |
---|---|
protocol/assertion.go , protocol/credential.go |
New functions ParseCredentialRequestResponseBytes and ParseCredentialCreationResponseBytes added, allowing parsing from byte slices instead of io.Reader . |
protocol/decoder.go |
Introduced decodeBytes to decode JSON from byte slices, enhancing the decoding process and handling trailing data. |
π In the land of bytes and code,
A new path for parsing we strode.
From slices, our data will flow,
With joy in our hearts, watch it glow!
Hereβs to the changes, so bright and new,
Hopping along, we code and we brew! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This adds methods to parse raw byte slices instead of an io.Reader via protocol.ParseCredentialCreationResponseBytes and protocol.ParseCredentialRequestResponseBytes.