Add secondary indexes (#14212) (#14382)

(cherry picked from commit 5affd8aa72)

Co-authored-by: carllin <wumu727@gmail.com>
This commit is contained in:
mergify[bot]
2021-01-01 07:42:47 +00:00
committed by GitHub
parent 46f9822d62
commit f6de92c346
20 changed files with 1875 additions and 234 deletions

View File

@@ -3,6 +3,8 @@ use num_derive::{FromPrimitive, ToPrimitive};
use std::{convert::TryFrom, fmt, mem, str::FromStr};
use thiserror::Error;
/// Number of bytes in a pubkey
pub const PUBKEY_BYTES: usize = 32;
/// maximum length of derived `Pubkey` seed
pub const MAX_SEED_LEN: usize = 32;
/// Maximum number of seeds