Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
822 B
Go
32 lines
822 B
Go
package base58
|
|
|
|
// Alphabet is a a b58 alphabet.
|
|
type Alphabet struct {
|
|
decode [128]int8
|
|
encode [58]byte
|
|
}
|
|
|
|
// NewAlphabet creates a new alphabet from the passed string.
|
|
//
|
|
// It panics if the passed string is not 58 bytes long or isn't valid ASCII.
|
|
func NewAlphabet(s string) *Alphabet {
|
|
if len(s) != 58 {
|
|
panic("base58 alphabets must be 58 bytes long")
|
|
}
|
|
ret := new(Alphabet)
|
|
copy(ret.encode[:], s)
|
|
for i := range ret.decode {
|
|
ret.decode[i] = -1
|
|
}
|
|
for i, b := range ret.encode {
|
|
ret.decode[b] = int8(i)
|
|
}
|
|
return ret
|
|
}
|
|
|
|
// BTCAlphabet is the bitcoin base58 alphabet.
|
|
var BTCAlphabet = NewAlphabet("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")
|
|
|
|
// FlickrAlphabet is the flickr base58 alphabet.
|
|
var FlickrAlphabet = NewAlphabet("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ")
|