Skip to content

Commit

Permalink
borsh bump to v1.0.0-alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bazzilic committed Aug 31, 2023
1 parent 023846d commit 2828dc7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion taiga_halo2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ byteorder = "1.4"
num-bigint = "0.4"

serde = { version = "1.0", features = ["derive"], optional = true }
borsh = { version = "0.10", features = ["const-generics"], optional = true }
borsh = { version = "1.0.0-alpha.3", features = ["derive"], optional = true }

[dev-dependencies]
criterion = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl ActionInstance {

#[cfg(feature = "borsh")]
impl BorshSerialize for ActionInstance {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> borsh::maybestd::io::Result<()> {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> std::io::Result<()> {
use ff::PrimeField;
writer.write_all(&self.anchor.to_repr())?;
writer.write_all(&self.nf.to_bytes())?;
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/binding_signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl BindingSigningKey {

#[cfg(feature = "borsh")]
impl BorshSerialize for BindingSigningKey {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> borsh::maybestd::io::Result<()> {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> std::io::Result<()> {
writer.write_all(&self.to_bytes())
}
}
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/circuit/vp_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl VPVerifyingInfo {

#[cfg(feature = "borsh")]
impl BorshSerialize for VPVerifyingInfo {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> borsh::maybestd::io::Result<()> {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> std::io::Result<()> {
use ff::PrimeField;
// Write vk
self.vk.write(writer)?;
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl Note {

#[cfg(feature = "borsh")]
impl BorshSerialize for Note {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> borsh::maybestd::io::Result<()> {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> std::io::Result<()> {
use byteorder::{LittleEndian, WriteBytesExt};
// Write app_vk
writer.write_all(&self.note_type.app_vk.to_repr())?;
Expand Down
2 changes: 1 addition & 1 deletion taiga_halo2/src/shielded_ptx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Executable for ShieldedPartialTransaction {

#[cfg(feature = "borsh")]
impl BorshSerialize for ShieldedPartialTransaction {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> borsh::maybestd::io::Result<()> {
fn serialize<W: std::io::Write>(&self, writer: &mut W) -> std::io::Result<()> {
for action in self.actions.iter() {
action.serialize(writer)?;
}
Expand Down

0 comments on commit 2828dc7

Please sign in to comment.