Vana SDK - v2.2.2
    Preparing search index...

    Interface PersonalServerIdentity

    Represents comprehensive personal server identity and connection information.

    Combines core server identity with connection metadata required for establishing secure communication. Personal servers are user-controlled nodes that store and serve encrypted personal data according to user-defined permissions. This interface provides all necessary information to connect to and interact with a personal server.

    const identity: PersonalServerIdentity = {
    kind: 'PersonalServer',
    address: '0x742d35Cc6558Fd4D9e9E0E888F0462ef6919Bd36',
    publicKey: '0x04...', // 65-byte uncompressed public key
    baseUrl: 'https://ps.user.vana.com',
    name: 'User Personal Server #1'
    };

    // Use identity to establish encrypted connection
    const encrypted = await crypto.encrypt(data, identity.publicKey);
    const response = await fetch(`${identity.baseUrl}/api/data`, {
    method: 'POST',
    body: encrypted
    });
    interface PersonalServerIdentity {
        kind: string;
        address: string;
        publicKey: string;
        baseUrl: string;
        name: string;
    }
    Index

    Properties

    kind: string

    Identifies the resource type for API disambiguation. Always 'PersonalServer' for personal server instances.

    address: string

    Uniquely identifies the server on the blockchain. Used for permission verification and identity proofs.

    '0x742d35Cc6558Fd4D9e9E0E888F0462ef6919Bd36'
    
    publicKey: string

    Enables end-to-end encryption for data transmission. Must be in uncompressed format (65 bytes with 0x04 prefix).

    '0x04...' (130 hex characters)
    
    baseUrl: string

    Provides the HTTPS endpoint for server API requests. Should not include trailing slashes or API paths.

    'https://ps.user.vana.com'
    
    name: string

    Displays a user-friendly identifier for the server. Used in UI components and logging for clarity.

    'Primary Data Server'