Merge branch 'main' into Pravdyvy/key-protocol-update-public-part

This commit is contained in:
Oleksandr Pravdyvyi 2025-08-15 14:29:05 +03:00
commit 4268830d18
No known key found for this signature in database
GPG Key ID: 9F8955C63C443871
3 changed files with 3 additions and 3 deletions

0
ci_scripts/lint-ubuntu.sh Normal file → Executable file
View File

View File

@ -2,11 +2,11 @@ use nssa_core::{
account::Nonce,
program::{InstructionData, ProgramId},
};
use serde::{Deserialize, Serialize};
use serde::Serialize;
use crate::{Address, error::NssaError, program::Program};
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Message {
pub(crate) program_id: ProgramId,
pub(crate) addresses: Vec<Address>,

View File

@ -15,7 +15,7 @@ impl PublicKey {
Self(value)
}
pub fn try_new(value: [u8; 32]) -> Result<Self, NssaError> {
pub(super) fn try_new(value: [u8; 32]) -> Result<Self, NssaError> {
// Check point is valid
let _ = secp256k1::XOnlyPublicKey::from_byte_array(value)
.map_err(|_| NssaError::InvalidPublicKey)?;