Skip to content
Permalink
Browse files

make account key extended

  • Loading branch information...
vincenthz committed Mar 14, 2019
1 parent 4a36f3e commit 3940bc45c4ae00d5cb48d69758121c05db82f9c1
Showing with 3 additions and 3 deletions.
  1. +3 −3 chain-addr/src/lib.rs
@@ -25,7 +25,7 @@
use bech32::{Bech32, FromBase32, ToBase32};
use std::string::ToString;

use chain_crypto::{Ed25519, Ed25519Extended, PublicKey, PublicKeyError};
use chain_crypto::{Ed25519Extended, PublicKey, PublicKeyError};

use chain_core::property::{self, Serialize as PropertySerialize};

@@ -52,7 +52,7 @@ pub enum Discrimination {
pub enum Kind {
Single(PublicKey<Ed25519Extended>),
Group(PublicKey<Ed25519Extended>, PublicKey<Ed25519Extended>),
Account(PublicKey<Ed25519>),
Account(PublicKey<Ed25519Extended>),
}

/// Kind Type of an address
@@ -418,7 +418,7 @@ pub mod testing {
use super::*;
use quickcheck::{Arbitrary, Gen};

fn arbitrary_public_key<G: Gen>(g: &mut G) -> PublicKey<Ed25519> {
fn arbitrary_public_key<G: Gen>(g: &mut G) -> PublicKey<Ed25519Extended> {
let mut bytes = [0; 32];
for byte in bytes.iter_mut() {
*byte = u8::arbitrary(g);

0 comments on commit 3940bc4

Please sign in to comment.
You can’t perform that action at this time.