From 64913a46791ecfe3727cf2fe57472783c9bc51e4 Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Sun, 13 Jul 2025 17:10:37 +0000 Subject: [PATCH] Update README.md --- README.en.md | 411 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 474 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 885 insertions(+) create mode 100644 README.en.md create mode 100644 README.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..883f170 --- /dev/null +++ b/README.en.md @@ -0,0 +1,411 @@ +# Offnet Assets + +A blockchain asset recording and transfer system based on Hyperledger Fabric, supporting core functionalities such as bond issuance, token minting, and cross-chain recording. + +## Features + +- **Asset Recording**: Records of assets are stored persistently +- **Cross-chain Operations**: Supports locking and synchronization of main chain/side chain +- **Token System**: Supports HTL locking and cross-chain transfers +- **Evidence Management**: Initialization, querying, and status tracking of evidence records + +## Quick Start + +### 9999 +func (w *Watcher) Close() error +func (w *Watcher) Add(name string) error +func (w *Watcher) Remove(name string) error +type watch struct +func (w *Watcher) readEvents() +func (e *Event) ignoreLinux(mask uint32) bool +func newEvent(name string, mask uint32) Event + +### backend/vendor/github.com/gabriel-vasile/mimetype/internal/magic/bitmap.go +var ( + // Jpeg matches JPEG file format. + Jpeg = prefix([]byte("\xFF\xD8\xFF")) + // Png matches Portable Network Graphics file format. + Png = prefix([]byte("\x89PNG\x0D\x0A\x1A\x0A")) + // Gif87a matches GIF images (87a version). + Gif87a = prefix([]byte("GIF87a")) + // Gif89a matches GIF images (89a version). + Gif89a = prefix([]byte("GIF89a")) + // TiffLe matches little-endian TIFF images. + TiffLe = prefix([]byte("II*\x00")) + // TiffBe matches big-endian TIFF images. + TiffBe = prefix([]byte("MM\x00*")) + // Webp matches WebP images. + Webp = prefix([]byte("RIFF"), []byte("WEBP")) + // Ico matches Icon files. + Ico = prefix([]byte("\x00\x00\x01\x00")) + // Avif matches AV1 Image File Format. + Avif = prefix([]byte("ftypavif"), []byte("ftypAVIF")) + // Heif matches High Efficiency Image File Format. + Heif = prefix([]byte("ftypheic"), []byte("ftypheix"), []byte("ftyphevc"), []byte("ftyphevx")) + // Jpeg2000 matches JPEG 2000 images. + Jpeg2000 = prefix([]byte{0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A}) + // Pcx matches ZSoft PCX images. + Pcx = prefix([]byte{0x0A, 0x00, 0x00}) + // Pnm matches PNM/PPM/PGM/PBM images. + Pnm = prefix([]byte("P1"), []byte("P2"), []byte("P3"), []byte("P4"), []byte("P5"), []byte("P6")) + // PngIHDR matches the IHDR chunk in PNG files. + PngIHDR = prefix([]byte("\x89PNG\x0D\x0A\x1A\x0A\x00\x00\x00\x0DIHDR")) + // Bmp matches Windows bitmap files. + Bmp = prefix([]byte("BM")) + // Psd matches Adobe Photoshop files. + Psd = prefix([]byte("8BPS")) + // Tga matches Truevision TGA files. + Tga = prefix([]byte{0x00, 0x00, 0x02}) + // Xbm matches X11 bitmap files. + Xbm = prefix([]byte("#define")) + // Xpm matches X11 pixmap files. + Xpm = prefix([]byte("/* XPM */")) + // Svg matches Scalable Vector Graphics files. + Svg = prefix([]byte("