mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-17 11:53:14 +00:00
update public account id domain separator
This commit is contained in:
parent
877f879af3
commit
0939b7e1c6
@ -9,11 +9,11 @@
|
||||
"port": 3040,
|
||||
"initial_accounts": [
|
||||
{
|
||||
"account_id": "BLgCRDXYdQPMMWVHYRFGQZbgeHx9frkipa8GtpG2Syqy",
|
||||
"account_id": "7adggko3qzAB8pSdBxz8FNx6JHTSciV38yA1jqcy2EQV",
|
||||
"balance": 10000
|
||||
},
|
||||
{
|
||||
"account_id": "Gj1mJy5W7J5pfmLRujmQaLfLMWidNxQ6uwnhb666ZwHw",
|
||||
"account_id": "9NHac6LD4VSWX4jyoB7Te8dx6qxMpmz2vGbrTNKFVu2J",
|
||||
"balance": 20000
|
||||
}
|
||||
],
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"initial_accounts": [
|
||||
{
|
||||
"Public": {
|
||||
"account_id": "BLgCRDXYdQPMMWVHYRFGQZbgeHx9frkipa8GtpG2Syqy",
|
||||
"account_id": "7adggko3qzAB8pSdBxz8FNx6JHTSciV38yA1jqcy2EQV",
|
||||
"pub_sign_key": [
|
||||
16,
|
||||
162,
|
||||
@ -47,7 +47,7 @@
|
||||
},
|
||||
{
|
||||
"Public": {
|
||||
"account_id": "Gj1mJy5W7J5pfmLRujmQaLfLMWidNxQ6uwnhb666ZwHw",
|
||||
"account_id": "9NHac6LD4VSWX4jyoB7Te8dx6qxMpmz2vGbrTNKFVu2J",
|
||||
"pub_sign_key": [
|
||||
113,
|
||||
121,
|
||||
|
||||
@ -48,7 +48,8 @@ impl PublicKey {
|
||||
|
||||
impl From<&PublicKey> for AccountId {
|
||||
fn from(key: &PublicKey) -> Self {
|
||||
const PUBLIC_ACCOUNT_ID_PREFIX: &[u8; 32] = b"/NSSA/v0.2/AccountId/Public/\x00\x00\x00\x00";
|
||||
const PUBLIC_ACCOUNT_ID_PREFIX: &[u8; 32] =
|
||||
b"/LEE/v0.3/AccountId/Public/\x00\x00\x00\x00\x00";
|
||||
|
||||
let mut hasher = Sha256::new();
|
||||
hasher.update(PUBLIC_ACCOUNT_ID_PREFIX);
|
||||
|
||||
@ -282,13 +282,11 @@ mod tests {
|
||||
|
||||
fn setup_sequencer_config() -> SequencerConfig {
|
||||
let acc1_account_id: Vec<u8> = vec![
|
||||
208, 122, 210, 232, 75, 39, 250, 0, 194, 98, 240, 161, 238, 160, 255, 53, 202, 9, 115,
|
||||
84, 126, 106, 16, 111, 114, 241, 147, 194, 220, 131, 139, 68,
|
||||
148, 179, 206, 253, 199, 51, 82, 86, 232, 2, 152, 122, 80, 243, 54, 207, 237, 112, 83, 153, 44, 59, 204, 49, 128, 84, 160, 227, 216, 149, 97, 102
|
||||
];
|
||||
|
||||
let acc2_account_id: Vec<u8> = vec![
|
||||
231, 174, 119, 197, 239, 26, 5, 153, 147, 68, 175, 73, 159, 199, 138, 23, 5, 57, 141,
|
||||
98, 237, 6, 207, 46, 20, 121, 246, 222, 248, 154, 57, 188,
|
||||
30, 145, 107, 3, 207, 73, 192, 230, 160, 63, 238, 207, 18, 69, 54, 216, 103, 244, 92, 94, 124, 248, 42, 16, 141, 19, 119, 18, 14, 226, 140, 204
|
||||
];
|
||||
|
||||
let initial_acc1 = AccountInitialData {
|
||||
@ -567,6 +565,7 @@ mod tests {
|
||||
acc1, 0, acc2, 100, sign_key1,
|
||||
);
|
||||
|
||||
|
||||
sequencer
|
||||
.execute_check_transaction_on_state(parse_unwrap_tx_body_into_nssa_tx(tx))
|
||||
.unwrap();
|
||||
|
||||
@ -400,8 +400,7 @@ mod tests {
|
||||
let balance_to_move = 10;
|
||||
let tx = common::test_utils::create_transaction_native_token_transfer(
|
||||
[
|
||||
208, 122, 210, 232, 75, 39, 250, 0, 194, 98, 240, 161, 238, 160, 255, 53, 202, 9,
|
||||
115, 84, 126, 106, 16, 111, 114, 241, 147, 194, 220, 131, 139, 68,
|
||||
148, 179, 206, 253, 199, 51, 82, 86, 232, 2, 152, 122, 80, 243, 54, 207, 237, 112, 83, 153, 44, 59, 204, 49, 128, 84, 160, 227, 216, 149, 97, 102,
|
||||
],
|
||||
0,
|
||||
[2; 32],
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"initial_accounts": [
|
||||
{
|
||||
"Public": {
|
||||
"account_id": "BLgCRDXYdQPMMWVHYRFGQZbgeHx9frkipa8GtpG2Syqy",
|
||||
"account_id": "7adggko3qzAB8pSdBxz8FNx6JHTSciV38yA1jqcy2EQV",
|
||||
"pub_sign_key": [
|
||||
16,
|
||||
162,
|
||||
@ -46,8 +46,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"Public": {
|
||||
"account_id": "Gj1mJy5W7J5pfmLRujmQaLfLMWidNxQ6uwnhb666ZwHw",
|
||||
"Public": {
|
||||
"account_id": "9NHac6LD4VSWX4jyoB7Te8dx6qxMpmz2vGbrTNKFVu2J",
|
||||
"pub_sign_key": [
|
||||
113,
|
||||
121,
|
||||
@ -544,4 +544,4 @@
|
||||
}
|
||||
],
|
||||
"basic_auth": null
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user