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

chore: release v1.0.0-rc.3 #1323

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.0.0-rc.3](https://github.com/iotaledger/inx-chronicle/compare/v1.0.0-rc.2...v1.0.0-rc.3) (2024-01-22)

### Miscellaneous Chores

* **deps:** update `iota-sdk` to fix validation bug

## [1.0.0-rc.2](https://github.com/iotaledger/inx-chronicle/compare/v1.0.0-rc.1...v1.0.0-rc.2) (2023-09-12)


Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chronicle"
version = "1.0.0-rc.2"
version = "1.0.0-rc.3"
authors = ["IOTA Stiftung"]
edition = "2021"
description = "IOTA permanode implemented as an IOTA Node Extension (INX)."
Expand Down
4 changes: 1 addition & 3 deletions src/model/block/payload/transaction/unlock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ impl TryFrom<Unlock> for iota::Unlock {

fn try_from(value: Unlock) -> Result<Self, Self::Error> {
Ok(match value {
Unlock::Signature { signature } => {
iota::Unlock::Signature(iota::SignatureUnlock::new(signature.try_into()?))
}
Unlock::Signature { signature } => iota::Unlock::Signature(iota::SignatureUnlock::new(signature.into())),
Unlock::Reference { index } => iota::Unlock::Reference(iota::ReferenceUnlock::new(index)?),
Unlock::Alias { index } => iota::Unlock::Alias(iota::AliasUnlock::new(index)?),
Unlock::Nft { index } => iota::Unlock::Nft(iota::NftUnlock::new(index)?),
Expand Down
14 changes: 6 additions & 8 deletions src/model/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,20 @@ impl From<&iota::Signature> for Signature {
fn from(value: &iota::Signature) -> Self {
match value {
iota::Signature::Ed25519(signature) => Self::Ed25519 {
public_key: signature.public_key().to_bytes(),
public_key: signature.public_key_bytes().to_bytes(),
signature: signature.signature().to_bytes(),
},
}
}
}

impl TryFrom<Signature> for iota::Signature {
type Error = iota_sdk::types::block::Error;

fn try_from(value: Signature) -> Result<Self, Self::Error> {
Ok(match value {
impl From<Signature> for iota::Signature {
fn from(value: Signature) -> Self {
match value {
Signature::Ed25519 { public_key, signature } => {
iota::Ed25519Signature::try_from_bytes(public_key, signature)?.into()
iota::Ed25519Signature::from_bytes(public_key, signature).into()
}
})
}
}
}

Expand Down
Loading