encode hash of orange balls