Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

763 B
Raw Blame
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.26;

import {Test} from "forge-std/Test.sol";
import {Base58} from "@openzeppelin/contracts/utils/Base58.sol";

contract Base58Test is Test {
    function testEncodeDecodeEmpty() external pure {
        assertEq(Base58.decode(Base58.encode(hex"")), hex"");
    }

    function testEncodeDecodeZeros() external pure {
        bytes memory zeros = hex"0000000000000000";
        assertEq(Base58.decode(Base58.encode(zeros)), zeros);

        bytes memory almostZeros = hex"00000000a400000000";
        assertEq(Base58.decode(Base58.encode(almostZeros)), almostZeros);
    }

    function testEncodeDecode(bytes memory input) external pure {
        assertEq(Base58.decode(Base58.encode(input)), input);
    }
}